Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a client who has multiple domains .co.uk, .org and .info and would like to point them to the main .com domain name.

They have changed the nameservers of the .co.uk, .org and .info domains.

Can anyone point me in the right direction?

share|improve this question
    
It's unclear what's the problem –  Aurelio De Rosa Dec 12 '12 at 9:09
    
I would like to add the .co.uk .org and .info to the .com record if possible. –  Ben Robinson Dec 12 '12 at 9:12
    
This is clear but what's unclear is what's your problem. It's possible to let the other domains point to the .com but what's your problem? Have you set the parameter and they don't point to the .com? Do you see any error? –  Aurelio De Rosa Dec 12 '12 at 9:15
    
Sorry, my issue is do I need to create a different record for each of the TLDs or can I incorporate it into the main .com record? –  Ben Robinson Dec 12 '12 at 9:25
    
Sorry, always unclear. Do you want redirect .co.uk, .org and .info to .com? Do you want to know how doing these redirects? –  Zistoloen Dec 12 '12 at 9:42
show 1 more comment

1 Answer

In order to redirect .co.uk, .org and .info to .com, good practices refer to use 301 redirections. There are various method to apply these redirections. My favourite are:

  • Doing it with .htaccess file if you use Apache web server (or specific file for another web server)

    You can follow this for more information.

  • Doing it with index.php file on other TLDs root. Here's an example:

    header("Status: 301 Moved Permanently", false, 301);  
    header("Location:http://www.example.com");  
    exit();
    
share|improve this answer
1  
If the NAMESERVERs for these other domains have been changed to point to the hosting account, then these domains will first need to be setup as parked (or addon) domains on the hosting account for the site to accept requests to these domains. You can then setup 301 redirects, checking the HTTP_HOST through which the site has been accessed... –  w3d Dec 12 '12 at 13:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.