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 2021/05/04 21:33:56 UTC

[solr-site] branch main updated: Separate htaccess file for operator dir.

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 6600162  Separate htaccess file for operator dir.
6600162 is described below

commit 6600162c3d5bfba64fb77882a3fb49c49aa98fe3
Author: Houston Putman <ho...@apache.org>
AuthorDate: Tue May 4 16:32:49 2021 -0500

    Separate htaccess file for operator dir.
---
 pelicanconf.py                                   |  2 +-
 themes/solr/templates/htaccess.template          |  1 -
 themes/solr/templates/operator/htaccess.template | 20 ++++++++++++++++++++
 3 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/pelicanconf.py b/pelicanconf.py
index 0953bfc..37224b4 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/htaccess.template': 'operator/.htaccess'}
 
 PLUGIN_PATHS = ['./plugins']
 PLUGINS = [
diff --git a/themes/solr/templates/htaccess.template b/themes/solr/templates/htaccess.template
index fdcd369..90e718e 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -71,7 +71,6 @@ 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
 
 ### Javadocs & Refguide
 
diff --git a/themes/solr/templates/operator/htaccess.template b/themes/solr/templates/operator/htaccess.template
new file mode 100644
index 0000000..ffac428
--- /dev/null
+++ b/themes/solr/templates/operator/htaccess.template
@@ -0,0 +1,20 @@
+# 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 /operator/
+
+### Redirects to Apache Nightlies, this will change when they have a separate area for released artifacts
+RedirectMatch temp ^/downloads/crds(/.*) https://nightlies.apache.org/solr/release/operator/crds$1