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/08 21:36:49 UTC
[solr-site] branch main updated: Redirect rule for css, js 'guide/_/'
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 936554b3a Redirect rule for css, js 'guide/_/'
936554b3a is described below
commit 936554b3a7eb7eabdf66d930758493a9aebe42bb
Author: Jan Høydahl <ja...@users.noreply.github.com>
AuthorDate: Sun May 8 23:36:41 2022 +0200
Redirect rule for css, js 'guide/_/'
---
themes/solr/templates/htaccess.template | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/themes/solr/templates/htaccess.template b/themes/solr/templates/htaccess.template
index 3bef25cfa..d6024fec2 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -86,7 +86,9 @@ RewriteRule ^docs/\d+.*$ __root/docs.solr.apache.org/$0 [PT]
# Ref-guides up to 8.x
RewriteRule ^guide/(6|7|8)_\d+.*$ __root/docs.solr.apache.org/$0 [PT]
# Ref-guides from 9.0
-RewriteRule ^guide/solr/\d+.*$ __root/docs.solr.apache.org/$0 [PT]
+RewriteRule ^guide/_/.+$ __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]
# Redirects generated by Antora for the ref-guide