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

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


The following commit(s) were added to refs/heads/asf-site by this push:
     new 8b2c261  Automatic Site Publish by Buildbot
8b2c261 is described below

commit 8b2c26156280a628e2684f67c86c4532ba7bb6b8
Author: buildbot <[email protected]>
AuthorDate: Sun Feb 6 23:41:23 2022 +0000

    Automatic Site Publish by Buildbot
---
 output/.htaccess       |  4 ++--
 output/guide/.htaccess | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/output/.htaccess b/output/.htaccess
index c625f39..2f353f8 100644
--- a/output/.htaccess
+++ b/output/.htaccess
@@ -43,6 +43,8 @@ RewriteRule ^mirrors-solr-latest-redir.html downloads.html    
         [R=301,NE
 RewriteRule ^mirrors-solr-3x-redir downloads.html                      
[R=301,NE,L]
 RewriteRule ^mirrors-solr-redir.html downloads.html                    
[R=301,NE,L]
 
+# See guide/.htaccess for reference guide specific redirects
+
 RedirectMatch Permanent ^/issue_tracking.html 
https://issues.apache.org/jira/browse/SOLR
 
 # Top-level javadoc redirect in case redirected from Lucene site /solr/X_Y_Z 
-> solr.apache.org/x_Y_Z
@@ -52,14 +54,12 @@ RedirectMatch Permanent ^/(\d+_\d+_\d+/.*)$ /docs/$1
 # Simple redirect to "directory", so later rules match
 RedirectMatch temp ^/api$ $0/
 RedirectMatch Permanent ^/docs/\d+_\d+_\d+$ $0/
-RedirectMatch Permanent ^/guide/\d+_\d+$ $0/
 
 # Other pages can always be redirected to the "most current" released javadocs
 # using "temp" instead of permanent so crawlers know that they
 # might change again in the future
 RedirectMatch temp ^/api/org/(.*) /docs/8_11_1/solr-core/org/$1
 RedirectMatch temp ^/api/(.*) /docs/8_11_1/$1
-RedirectMatch temp ^/guide/(?!index.html)([a-z].*) /guide/8_11/$1
 
 # Solr Tutorial is now in the Solr Ref Guide
 # should redirect automatically to latest version
diff --git a/output/guide/.htaccess b/output/guide/.htaccess
new file mode 100644
index 0000000..7abc354
--- /dev/null
+++ b/output/guide/.htaccess
@@ -0,0 +1,36 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+RewriteEngine on
+RewriteBase /guide/
+
+# Page renames. Relative to 'guide/'
+
+# Solr 8.0
+RewriteRule ^resource-and-plugin-loading.html resource-loading.html 
[R=301,NE,L]
+RewriteRule ^time-routed-aliases.html aliases.html [R=301,NE,L]
+
+# Solr 8.8
+RewriteRule ^result-clustering.html 8_7/result-clustering.html [R=301,NE,L]
+
+# Solr 9.0 - Move to Antora and new page layout
+# Rules generated by dev-tools/scripts/refguide/gen-refguide-redirects.py
+RewriteRule ^foo.html solr-glossary.html [R=301,NE,L]
+
+# Simple redirect to "directory", so later rules match
+RedirectMatch Permanent ^/guide/\d+_\d+$ $0/
+
+# Redirect to latest guide version, e.g. /guide/foo.html is redirected to 
latest guide /guide/X_Y/foo.html
+RedirectMatch temp ^/guide/(?!index.html)([a-z].*) /guide/8_11/$1
\ No newline at end of file

Reply via email to