titan21 Posted March 23, 2012 Share Posted March 23, 2012 Hi, Was just tidying up a bit of config recently and wondered what the best way to do this was. I have two domains x.com and x.co.uk. Originally I have it set up so that: ServerName www.x.co.uk ServerAlias www.x.com I also wanted to be sure that any requests for x.com or x.co.uk would be sent to the appropriate www address. It seemed simple enough to add x.com and x.co.uk to the ServerAlias directive but should I really do redirects? The site would function as expected but I guess I am asking from an SEO perspective - would having the four addresses (www.x.com, x.com, www.x.co.uk, x.co.uk) dilute link juice or does it not matter? When should I use redirects and when should I use aliases? Thanks in advance. Tim Link to comment https://forums.phpfreaks.com/topic/259549-redirects-or-serveralias/ Share on other sites More sharing options...
JonnoTheDev Posted March 23, 2012 Share Posted March 23, 2012 I would always use a 301 redirect i.e If you have a page xyz.com/about and someone types in xyz.co.uk/about you want it to redirect to the corresponding page on your .com primary domain. If somebody posts a link on another website to xyz.co.uk/about and Google picks up on this then you want Google to acknowledge that it is a 301 redirect. If you aren't using 301 redirects and the same page is shown on both urls then Google will penalise you for duplicate content i.e having the same content on 2 different addresses. Link to comment https://forums.phpfreaks.com/topic/259549-redirects-or-serveralias/#findComment-1330455 Share on other sites More sharing options...
titan21 Posted March 23, 2012 Author Share Posted March 23, 2012 Thanks Neil, So do you think the sensible option is to have a main domain (x.co.uk) and then use redirects for the rest? Link to comment https://forums.phpfreaks.com/topic/259549-redirects-or-serveralias/#findComment-1330484 Share on other sites More sharing options...
JonnoTheDev Posted March 23, 2012 Share Posted March 23, 2012 yep Link to comment https://forums.phpfreaks.com/topic/259549-redirects-or-serveralias/#findComment-1330524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.