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 5514da4  Try to work around htaccess MultiViews
5514da4 is described below

commit 5514da46ff359dddd04ab7196bf361ce44b3759d
Author: Houston Putman <[email protected]>
AuthorDate: Thu May 6 12:05:01 2021 -0500

    Try to work around htaccess MultiViews
---
 pelicanconf.py                                        |  2 +-
 themes/solr/templates/htaccess.template               |  2 +-
 themes/solr/templates/operator/crds.htaccess.template | 17 +++++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/pelicanconf.py b/pelicanconf.py
index 0953bfc..ef3e78d 100755
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -89,7 +89,7 @@ EXTRA_PATH_METADATA = {}
 
 STATIC_PATHS = ['.']
 
-TEMPLATE_PAGES = {'htaccess.template': '.htaccess'}
+TEMPLATE_PAGES = {'htaccess.template': '.htaccess', 
'operator/crds.htaccess.template': 'operator/downloads/crds/.htaccess'}
 
 PLUGIN_PATHS = ['./plugins']
 PLUGINS = [
diff --git a/themes/solr/templates/htaccess.template 
b/themes/solr/templates/htaccess.template
index fdcd369..bbc9f4f 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -71,7 +71,7 @@ RedirectMatch Permanent ^/docs/api-(.*) /docs/$1
 
 ### Redirects to Apache Nightlies, this will change when they have a separate 
area for released artifacts
 Redirect temp /charts https://nightlies.apache.org/solr/release/helm-charts
-RedirectMatch temp ^/operator/downloads/crds(/.*) 
https://nightlies.apache.org/solr/release/operator/crds$1
+RewriteRule ^operator/downloads/?$  operator/downloads.html [PT]
 
 ### Javadocs & Refguide
 
diff --git a/themes/solr/templates/operator/crds.htaccess.template 
b/themes/solr/templates/operator/crds.htaccess.template
new file mode 100644
index 0000000..0299865
--- /dev/null
+++ b/themes/solr/templates/operator/crds.htaccess.template
@@ -0,0 +1,17 @@
+# 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.
+
+### Redirects to Apache Nightlies, this will change when they have a separate 
area for released artifacts
+Redirect temp /operator/downloads/crds 
https://nightlies.apache.org/solr/release/operator/crds

Reply via email to