Moves noindex into conditional statement

related to #1620
This commit is contained in:
Robert Went 2017-08-16 15:11:46 +01:00
parent 42bf414a9b
commit ceef6d6b04

View File

@ -5,9 +5,6 @@
RewriteEngine On RewriteEngine On
# Blocks Search Engine Indexing
Header set X-Robots-Tag "noindex, nofollow"
# Redirect Trailing Slashes... # Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301] RewriteRule ^(.*)/$ /$1 [L,R=301]
@ -24,3 +21,8 @@
# you have to enable the following line: # you have to enable the following line:
# RewriteBase / # RewriteBase /
</IfModule> </IfModule>
<IfModule mod_headers.c>
# Blocks Search Engine Indexing
Header set X-Robots-Tag "noindex, nofollow"
</IfModule>