robots noindex nofollow on dev or uat installs
-
Hi
I run my wp in https://www.example.com, uat.example.com, and dev.example.com installs for production, user acceptable testing, and development.
I’d like to create a conditional statement in header.php if I’m running the code on the uat or dev environments that outputs `echo ‘<meta name=”robots” content=”noindex,nofollow”> ‘
I don’t want my uat and dev environment indexed and I don’t want to have individual robots.txt files.
How can I test for subdomains or not main domain?
Thanks in advance.
Boots
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘robots noindex nofollow on dev or uat installs’ is closed to new replies.