Last active
December 4, 2015 21:44
-
-
Save fititnt/8bf91653fb6861b0c5bd to your computer and use it in GitHub Desktop.
.htaccess: set X-Robots-Tag noindex,nofollow for non-varnish requests (hide from search engines)
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
# Set X-Robots-Tag noindex,nofollow if not requested by Varnish-cache | |
# e.g. can hide content from Google if both varnish and apache are open | |
# Apache 2.4+ | |
<If "-z %{HTTP:X-VARNISH}"> | |
Header set X-Robots-Tag noindex,nofollow | |
</If> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment