Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

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

I will migrate my website from server A to server B.

During the DNS propagation, the users arriving on server A will be 302 redirected (rewrite rule in Apache) to a temporary alias on server B.

Example: A (http://www.mywebsite.com) -> B (http://mywebsite.com.myhoster.com)

When their DNS is updated, they will go to server B (www.mywebsite.com).

After a few days, we will stop server A and remove the alias on server B.

Is it a good practice (SEO and technically)? Or do you have an other idee?

Note: The TTL of the DNS record has been set to 300 to speed the DNS switch.

share|improve this question
up vote 1 down vote accepted

Redirecting to a temporary alias is a bad idea. What if a new visitor bookmarks it and then the temporary alias is deleted? What if Google visits just then and adds the temporary alias to their search index? TTL of 300 is 5 minutes. It's better to not redirect at all. Just wait the 5 minutes for the DNS to change.

share|improve this answer
Thanks a lot! Actually I just found this interesting article from Google: googlewebmastercentral.blogspot.com/2008/01/… They specifically speak about IP modification. – Toto Nov 2 '11 at 5:35

Your Answer


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.