Last active
August 29, 2015 14:11
-
-
Save zet-snippets/132c85ae3d09053ac0ac to your computer and use it in GitHub Desktop.
Stop search engines from indexing .txt, .log, .xml, .css, .js and .gz files in Apache
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
<FilesMatch "\.(txt|log|xml|css|js|gz)$"> | |
Header set X-Robots-Tag "noindex" | |
</FilesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment