Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Redirection 302 during DNS update 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)

@Nimeshi995

Posted in: #Dns #Redirects #Seo

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme