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 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?

share|improve this question
up vote 2 down vote accepted

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

Redirect permanent / http://newipordomain/
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.