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 18:45:07 UTC
[solr-site] branch main updated: Try a different if syntax for the htaccess
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 4dacf3e97 Try a different if syntax for the htaccess
4dacf3e97 is described below
commit 4dacf3e97548172bed205f92d12cbc80bb53d599
Author: Houston Putman <ho...@apache.org>
AuthorDate: Thu Jun 30 14:44:59 2022 -0400
Try a different if syntax for the htaccess
---
themes/solr/templates/htaccess.ref-guide-old | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/themes/solr/templates/htaccess.ref-guide-old b/themes/solr/templates/htaccess.ref-guide-old
index 22ec98b63..70e17f0d8 100644
--- a/themes/solr/templates/htaccess.ref-guide-old
+++ b/themes/solr/templates/htaccess.ref-guide-old
@@ -1,3 +1,11 @@
+# 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)_.*#>
+ Header always set X-Robots-Tag "noindex,nofollow,noarchive"
+</If>
+<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|solrcloud [...]
+ Header always unset X-Robots-Tag
+</If>
+
# Existing pages moved to sub path in the 9.0 guide
RedirectMatch 301 ^/guide/(about-this-guide|relevance|solr-glossary|solr-tutorial)\.html /guide/solr/latest/getting-started/$1.html
RedirectMatch 301 ^/guide/(aliases|audit-logging|authentication-and-authorization-plugins|basic-authentication-plugin|circuit-breakers|client-apis|cloud-screens|cluster-node-management|collection-management|collections-core-admin|configuring-logging|enabling-ssl|hadoop-authentication-plugin|indexupgrader-tool|installing-solr|jvm-settings|jwt-authentication-plugin|kerberos-authentication-plugin|mbean-request-handler|metrics-reporting|performance-statistics-reference|ping|plugins-stats-scr [...]
@@ -118,9 +126,3 @@ RewriteRule ^guide/real-time-get.html /guide/solr/latest/configuration-guide/rea
# Removed pages redirected to latest 8.x guide
RedirectMatch 301 ^/guide/(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|solrcloud-autoscaling [...]
# Paths we could not map
-
-
-# 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)_.*# && %{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-toleranc [...]
- Header always set X-Robots-Tag "noindex,nofollow,noarchive"
-</If>