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 d9a647111 Add static ref guide files to htaccess
d9a647111 is described below

commit d9a647111c385be4b0af5f1abda291f6003b58d2
Author: Houston Putman <[email protected]>
AuthorDate: Mon Apr 21 10:57:25 2025 -0500

    Add static ref guide files to htaccess
---
 themes/solr/templates/htaccess.template | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/themes/solr/templates/htaccess.template 
b/themes/solr/templates/htaccess.template
index 3ec084d17..2ee9cb25b 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -87,6 +87,8 @@ RewriteRule ^(docs|guide)/\d+(?!.+\.\w+$|.+/$).+$          
$0/ [R=301,L]
 
 # __root/docs.solr.apache.org/ is a special alias added by INFRA-19439, so we 
can refer to stuff in other places like SVN
 RewriteRule ^docs/\d+.*$  __root/docs.solr.apache.org/$0 [PT]
+# Static pages that should be servable
+RewriteRule ^guide/(search-index\.js|sitemap\.xml|404\.html)$  
__root/docs.solr.apache.org/$0 [PT]
 # For debugging - can remove later
 RewriteRule ^guide/go.*$  __root/docs.solr.apache.org/$0 [PT]
 # Ref-guides up to 8.x

Reply via email to