We have a multiple site installation, in the process of migrating to v5. Many of our sites serve both www.site.com and site.com by having both as site URLs. This leads to two issues:
1. When linking between Matrix sites, a random (and hence inconsistent) URL is chosen
2. Therefore, Google et al spider both addresses, which we obviously Do Not Want
What is the best way around what must be a fairly common issue? Ideally we want to force one of the above always to redirect to the other, but always to the full path requested, eg if site.com/path/to/page is requested, the request is redirected to www.site.com/path/to/page throughout. Can this be done with eg rewriting by Apache?
Thanks
Tom