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/12 09:01:34 UTC
[solr-site] branch main updated: Fix the 'latest' link to be redirected to __root
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
The following commit(s) were added to refs/heads/main by this push:
new aff2e31c2 Fix the 'latest' link to be redirected to __root
aff2e31c2 is described below
commit aff2e31c28da44a45a89b5fe186b5c89ab98a009
Author: Jan Høydahl <ja...@users.noreply.github.com>
AuthorDate: Thu May 12 11:01:25 2022 +0200
Fix the 'latest' link to be redirected to __root
---
themes/solr/templates/htaccess.template | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/solr/templates/htaccess.template b/themes/solr/templates/htaccess.template
index d35688b5c..65eb204a3 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -93,7 +93,7 @@ RewriteRule ^guide/(6|7|8)_\d+.*$ __root/docs.solr.apache.org/$0 [PT]
RewriteRule ^guide/(9_\d+)/?$ guide/solr/$1/ [R=301,L]
RewriteRule ^guide/(_/.+|search-index.js)$ __root/docs.solr.apache.org/$0 [PT]
RewriteRule ^guide/solr/(latest|\d+(?!.+\.\w+$|.+/$).+)$ $0/ [R=301,L]
-RewriteRule ^guide/solr/\d+_\d+/.*$ __root/docs.solr.apache.org/$0 [PT]
+RewriteRule ^guide/solr/(\d+_\d+|latest)/.*$ __root/docs.solr.apache.org/$0 [PT]
# Redirects generated by Antora for the ref-guide