You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2022/06/24 16:51:35 UTC
[solr-site] 01/01: Redirect /guide/solr to /guide/solr/latest
This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch guide-solr-redirect
in repository https://gitbox.apache.org/repos/asf/solr-site.git
commit 8aa80d2df63f638c9b8658cd862816347340eafd
Author: Houston Putman <ho...@gmail.com>
AuthorDate: Fri Jun 24 12:51:29 2022 -0400
Redirect /guide/solr to /guide/solr/latest
This is much like this line generated by antora: https://github.com/apache/solr-site/blob/main/themes/solr/templates/htaccess.ref-guide-antora#L2, however without the requirement to have `index.html` at the end.
---
themes/solr/templates/htaccess.template | 1 +
1 file changed, 1 insertion(+)
diff --git a/themes/solr/templates/htaccess.template b/themes/solr/templates/htaccess.template
index 65eb204a3..7b761bd9f 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -96,5 +96,6 @@ RewriteRule ^guide/solr/(latest|\d+(?!.+\.\w+$|.+/$).+)$ $0/ [R=301,L]
RewriteRule ^guide/solr/(\d+_\d+|latest)/.*$ __root/docs.solr.apache.org/$0 [PT]
# Redirects generated by Antora for the ref-guide
+RedirectMatch Permanent ^/guide/solr/?$ /guide/solr/latest/
{% include "htaccess.ref-guide-antora" %}