Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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


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.