Server Fault is a question and answer site for system and network administrators. 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

I have transferred the website to different webhosting. Some users see old website since their DNS servers point to old webhosting IP.

How can I alter the .htaccess in the old website to tell their DNS servers that this IP is wrong and they should follow to a new one? Is this possible at all?

share|improve this question

Your best bet is to create a subdomain pointing to the new IP address ( and then do your 301 redirect on the old server to point to the new subdomain. That will get everyone seeing your site until the DNS changes have propagated everywhere.

share|improve this answer
Forgot to give you the instruction for redirecting. Once you have the subdomain in place just add the following to your .htaccess file: redirect 301 / – Scott Wolf Jan 19 '10 at 18:18

The DNS server itself does not contact to your webserver at all, therefor it's impossible "to tell their DNS servers that this IP is wrong".

Also, a HTTP redirection to the new IP address will probably not work as expected (named VHosts, etc?). Have your lowered the TTL of the DNS records? If not, do it now...

share|improve this answer

Your Answer


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