You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2022/06/30 17:13:24 UTC

[solr-site] branch main updated: SOLR-16262: Fix robots tag headers for old refguide pages

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 07da47674 SOLR-16262: Fix robots tag headers for old refguide pages
07da47674 is described below

commit 07da47674c701ba62a487e3ed367be78a99a9a84
Author: Houston Putman <ho...@gmail.com>
AuthorDate: Thu Jun 30 13:13:20 2022 -0400

    SOLR-16262: Fix robots tag headers for old refguide pages
---
 themes/solr/templates/htaccess.ref-guide-old | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/themes/solr/templates/htaccess.ref-guide-old b/themes/solr/templates/htaccess.ref-guide-old
index 2e87a7b7d..419467d09 100644
--- a/themes/solr/templates/htaccess.ref-guide-old
+++ b/themes/solr/templates/htaccess.ref-guide-old
@@ -121,8 +121,6 @@ RedirectMatch 301 ^/guide/(adding-custom-plugins-in-solrcloud-mode|blob-store-ap
 
 
 # Do not index old reference guide pages on search engines, except for pages that don't exist in 9+
-<If "%{REQUEST_URI} =~ m#^/guide/(6|7|8)_.*#">
-  <If "%{REQUEST_URI} !~ m#^/guide/8_11/(adding-custom-plugins-in-solrcloud-mode|blob-store-api|blockjoin-faceting|cdcr-api|cdcr-architecture|cdcr-config|cdcr-operations|colocating-collections|cross-data-center-replication-cdcr|dataimport-screen|errata|metrics-history|migrate-to-policy-rule|putting-the-pieces-together|rule-based-replica-placement|solrcloud-autoscaling-api|solrcloud-autoscaling-auto-add-replicas|solrcloud-autoscaling-fault-tolerance|solrcloud-autoscaling-listeners|solrclo [...]
-    Header set X-Robots-Tag "noindex,nofollow,noarchive"
-  </If>
+<If "%{REQUEST_URI} =~ m#/guide/(6|7|8)_.*# && %{REQUEST_URI} !~ m#/guide/8_11/(adding-custom-plugins-in-solrcloud-mode|blob-store-api|blockjoin-faceting|cdcr-api|cdcr-architecture|cdcr-config|cdcr-operations|colocating-collections|cross-data-center-replication-cdcr|dataimport-screen|errata|metrics-history|migrate-to-policy-rule|putting-the-pieces-together|rule-based-replica-placement|solrcloud-autoscaling-api|solrcloud-autoscaling-auto-add-replicas|solrcloud-autoscaling-fault-tolerance| [...]
+  Header set X-Robots-Tag "noindex,nofollow,noarchive"
 </If>