Jump to content

Redirects or ServerAlias?


titan21

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.