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> |
I made one years ago and lost it during a migration so thanks for posting it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I understand it as "noindex" and not like a robots "disallow"