Last active
June 16, 2016 08:34
-
-
Save sergejmueller/ba66c05afc60cac9abbb to your computer and use it in GitHub Desktop.
Stop search engines from indexing .txt, .log, .xml, .css and .js 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)$"> | |
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
I made one years ago and lost it during a migration so thanks for posting it.