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/05 19:50:30 UTC

[solr-site] branch main updated: Put operator crd redirect back in main htaccess

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 ec963fe  Put operator crd redirect back in main htaccess
ec963fe is described below

commit ec963fe21615f322fa0fb0a694e0417aa853e43e
Author: Houston Putman <ho...@apache.org>
AuthorDate: Wed May 5 14:50:14 2021 -0500

    Put operator crd redirect back in main htaccess
---
 pelicanconf.py                                   |  2 +-
 themes/solr/templates/htaccess.template          |  1 +
 themes/solr/templates/operator/htaccess.template | 20 --------------------
 3 files changed, 2 insertions(+), 21 deletions(-)

diff --git a/pelicanconf.py b/pelicanconf.py
index 37224b4..0953bfc 100755
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -89,7 +89,7 @@ EXTRA_PATH_METADATA = {}
 
 STATIC_PATHS = ['.']
 
-TEMPLATE_PAGES = {'htaccess.template': '.htaccess', 'operator/htaccess.template': 'operator/.htaccess'}
+TEMPLATE_PAGES = {'htaccess.template': '.htaccess'}
 
 PLUGIN_PATHS = ['./plugins']
 PLUGINS = [
diff --git a/themes/solr/templates/htaccess.template b/themes/solr/templates/htaccess.template
index 90e718e..fdcd369 100644
--- a/themes/solr/templates/htaccess.template
+++ b/themes/solr/templates/htaccess.template
@@ -71,6 +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
 
 ### Javadocs & Refguide
 
diff --git a/themes/solr/templates/operator/htaccess.template b/themes/solr/templates/operator/htaccess.template
deleted file mode 100644
index ffac428..0000000
--- a/themes/solr/templates/operator/htaccess.template
+++ /dev/null
@@ -1,20 +0,0 @@
-# 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