Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

So.. I have my live version of my site e.g v1.0 at

I then have my development testing version at

I want to only be accessible to me for testing, and as such I redirect all other IPs in my .htaccess file to the current live version at

Given this, do I need to have a robots.txt file on to block search robots, or will the .htaccess redirect suffice?

Tiny extra little question.. should such a redirect be a 301 permanent redirect?


share|improve this question

The redirect is sufficient. Yes, best practice for this kind of redirect use case is a 301.

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.