Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.