You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2021/02/24 20:08:47 UTC

[lucene-site] 05/05: Edit some rewrite rules

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch main/solr
in repository https://gitbox.apache.org/repos/asf/lucene-site.git

commit 843b2c1997067f58c2c0a19c537c4eca6a70e2de
Author: Jan Høydahl <ja...@cominvent.com>
AuthorDate: Wed Feb 24 21:07:30 2021 +0100

    Edit some rewrite rules
---
 themes/solr/templates/htaccess.template | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/themes/solr/templates/htaccess.template b/themes/solr/templates/htaccess.template
index d3b88a3..9c2be12 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -30,15 +30,20 @@ RedirectMatch Permanent ^/solr/doap.rdf https://gitbox.apache.org/repos/asf?p=so
 
 # Solr site redesign
 # needs to use mod_rewrite because of the anchor fragments
-RewriteRule ^solr/books.html resources.html#solr-books                      [R=301,NE,L]
-RewriteRule ^solr/discussion.html resources.html#community                  [R=301,NE,L]
-RewriteRule ^solr/documentation.html resources.html#documentation           [R=301,NE,L]
-RewriteRule ^solr/screenshots.html features.html                            [R=301,NE,L]
-RewriteRule ^solr/solrnews.html news.html                                   [R=301,NE,L]
-RewriteRule ^solr/tutorial.html resources.html#tutorials                    [R=301,NE,L]
-RewriteRule ^solr/versioncontrol.html resources.html#solr-version-control   [R=301,NE,L]
-RewriteRule ^solr/version_control.html resources.html#solr-version-control  [R=301,NE,L]
-RewriteRule ^solr/mailing_lists.html resources.html#community               [R=301,NE,L]
+RewriteRule ^books.html resources.html#solr-books                      [R=301,NE,L]
+RewriteRule ^discussion.html community.html#mailing-lists-chat         [R=301,NE,L]
+RewriteRule ^documentation.html resources.html#documentation           [R=301,NE,L]
+RewriteRule ^screenshots.html features.html                            [R=301,NE,L]
+RewriteRule ^solrnews.html news.html                                   [R=301,NE,L]
+RewriteRule ^tutorial.html resources.html#tutorials                    [R=301,NE,L]
+RewriteRule ^versioncontrol.html resources.html#solr-version-control   [R=301,NE,L]
+RewriteRule ^version_control.html resources.html#solr-version-control  [R=301,NE,L]
+RewriteRule ^mailing_lists.html community.html#mailing-lists-chat      [R=301,NE,L]
+
+RedirectMatch Permanent ^issue_tracking.html https://issues.apache.org/jira/browse/SOLR
+RedirectMatch Permanent ^mirrors-solr-latest-redir.html downloads.html
+RedirectMatch Permanent ^mirrors-solr-3x-redir downloads.html
+RedirectMatch Permanent ^mirrors-solr-redir.html downloads.html
 
 # Simple redirect to "directory", so later rules match
 RedirectMatch temp ^/(core|solr)/api$ $0/