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 22:12:07 UTC
[solr-site] branch main updated: Redirect search-index.js
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 29f202310 Redirect search-index.js
29f202310 is described below
commit 29f2023108c50ee5eefdc4112b422145660c2a78
Author: Jan Høydahl <ja...@users.noreply.github.com>
AuthorDate: Mon May 9 00:11:58 2022 +0200
Redirect search-index.js
---
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 d6024fec2..6389aca32 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -86,7 +86,7 @@ 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/_/.+$ __root/docs.solr.apache.org/$0 [PT]
+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]