You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ja...@apache.org on 2022/05/11 22:52:47 UTC

[solr-site] 01/02: Disable generic wildcard page redirect to old refguide

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

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

commit a01c479a74df98918cf90b896d8a0ca985461231
Author: Jan Høydahl <ja...@users.noreply.github.com>
AuthorDate: Thu May 12 00:52:05 2022 +0200

    Disable generic wildcard page redirect to old refguide
---
 themes/solr/templates/htaccess.template | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/themes/solr/templates/htaccess.template b/themes/solr/templates/htaccess.template
index 7b7a456d4..330d85aad 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -59,7 +59,8 @@ RedirectMatch Permanent ^/guide/\d+_\d+$ $0/
 # might change again in the future
 RedirectMatch temp ^/api/org/(.*) /docs/{{ SOLR_LATEST_RELEASE | replace(".", "_") }}/solr-core/org/$1
 RedirectMatch temp ^/api/(.*) /docs/{{ SOLR_LATEST_RELEASE | replace(".", "_") }}/$1
-RedirectMatch temp ^/guide/(?!index.html)(?!solr/)(?!search-index.js)([a-z].*) /guide/{{ SOLR_LATEST_RELEASE.rsplit(".", 1) | first | replace(".", "_") }}/$1
+# No need for this after 9.0, as we now use /guide/solr/latest/foo
+#RedirectMatch temp ^/guide/(?!index.html)(?!solr/)(?!search-index.js)([a-z].*) /guide/{{ SOLR_LATEST_RELEASE.rsplit(".", 1) | first | replace(".", "_") }}/$1
 
 # Solr Tutorial is now in the Solr Ref Guide
 # should redirect automatically to latest version