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

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

I then have my development testing version at testing.domain.com

I want testing.domain.com 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 domain.com

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

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

Thanks

share|improve this question

1 Answer 1

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

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.