I have this problem. I've transferred bunch of websites to a new server, but some users still get to an old site/server and the reasons are:

  1. DNS caching
  2. Name servers/A records take time to switch to a new IP

Is there a way to somehow redirect all the people who still get to the old server? Is there a way to edit .htaccess file to point them to an IP address?

link|improve this question

80% accept rate
feedback

1 Answer

up vote 2 down vote accepted

Yes, you could put this in the .htaccess on the root of the site:

Redirect permanent / http://newipordomain/
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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