Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If we want to move a website from one TLD to another, e.g example.com to example.org, while preserving SEO.

We intend to do the following:

  1. Point both example.com and example.org to same IP where my site is working.
  2. Use canonical URL to have example.org/* instead of example.com/*
  3. Use 301 redirect from old TLD to new.
  4. Add site to Google Webmaster Tools and make a change request.

But the big problem is we are unable to 301 redirect from example.com to example.org as both are on same IP, doing so is causing redirect loop and error.

How can I prevent the redirect looping?

share|improve this question
    
What's your website platform? are you able to access files in your server/hosting? how did you implemented your 301 redirect? – Binarysurf Oct 17 '13 at 19:29
1  
Being on the same IP should not affect your redirect. Show us what you tried so we can fix it for you. – John Conde Oct 17 '13 at 19:32

You should redirect all requests to example.com to example.org. This works best with Apache web server:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://example.org/$1 [R=301,L]

I haven't tested it now, but it should work. Maybe you should do a rewrite from www.example.org to example.org with status code 301, and the same for www.example.com, but I'm not sure.

share|improve this answer

You can use .htaccess file for redirecting requests that come to example.com to example.org. Ensure that this rewrite rule gets fired only when the request comes to example.com; that way after the first redirect you will not get stuck in an infinite loop. You can test .htaccess redirects using various online htaccess web applications.

share|improve this answer

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.