Created
December 13, 2018 15:29
-
-
Save jonathanstegall/5e818b839733c5c13702fd07a7e321fc to your computer and use it in GitHub Desktop.
keep stage and dev subdomains out of search indexes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # keep stage and dev out of indexes | |
| <IfModule mod_headers.c> | |
| <IfModule mod_setenvif.c> | |
| SetEnvIf Host ^stage\. NOINDEX | |
| SetEnvIf Host ^dev\. NOINDEX | |
| Header set X-Robots-Tag "noindex, nofollow, noarchive" env=NOINDEX | |
| </IfModule> | |
| </IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment