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?



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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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