From 42bf414a9b76ecfe2316bfed8be170b151e02f50 Mon Sep 17 00:00:00 2001 From: Robert Went Date: Wed, 16 Aug 2017 01:55:22 +0100 Subject: [PATCH 1/2] Prevents indexing by search engines related to #1617 --- public/.htaccess | 3 +++ public/robots.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/.htaccess b/public/.htaccess index 9d7726d979ef..15740ec77a7f 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -5,6 +5,9 @@ RewriteEngine On + # Blocks Search Engine Indexing + Header set X-Robots-Tag "noindex, nofollow" + # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] diff --git a/public/robots.txt b/public/robots.txt index 9e60f970fbd0..1f53798bb4fe 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: +Disallow: / From ceef6d6b0467797cb9a1cf36672be62891b825c9 Mon Sep 17 00:00:00 2001 From: Robert Went Date: Wed, 16 Aug 2017 15:11:46 +0100 Subject: [PATCH 2/2] Moves noindex into conditional statement related to #1620 --- public/.htaccess | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index 15740ec77a7f..7c772f324f8a 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -5,9 +5,6 @@ RewriteEngine On - # Blocks Search Engine Indexing - Header set X-Robots-Tag "noindex, nofollow" - # Redirect Trailing Slashes... RewriteRule ^(.*)/$ /$1 [L,R=301] @@ -24,3 +21,8 @@ # you have to enable the following line: # RewriteBase / + + + # Blocks Search Engine Indexing + Header set X-Robots-Tag "noindex, nofollow" + \ No newline at end of file