Last active
August 29, 2015 14:15
-
-
Save herveguetin/126080634129d280b9e6 to your computer and use it in GitHub Desktop.
.htaccess lines to avoid robots indexing
This file contains 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
# Make sure mod_headers is enabled in Apache | |
sudo a2enmod headers | |
# Place this in .htaccess | |
<IfModule mod_headers.c> | |
Header set X-Robots-Tag "noindex, nofollow" | |
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform" | |
Header set Pragma "no-cache" | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment