You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2020/01/04 12:24:40 UTC

[lucene-site] branch master updated: Fix some redirects, add comment and license header

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 0c27720  Fix some redirects, add comment and license header
0c27720 is described below

commit 0c27720d683fe380350e3c344a3b398499c337b6
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Sat Jan 4 13:24:30 2020 +0100

    Fix some redirects, add comment and license header
---
 content/.htaccess | 31 +++++++++++++++++++++----------
 1 file changed, 21 insertions(+), 10 deletions(-)

diff --git a/content/.htaccess b/content/.htaccess
index 7a8cd22..2202d78 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -1,7 +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
 #
-# $HeadURL: https://svn.apache.org/repos/asf/lucene/site/publish/.htaccess $
-#
+#     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 /
@@ -37,7 +47,6 @@ RewriteRule solr/versioncontrol.html solr/resources.html#solr-version-control
 RewriteRule solr/version_control.html solr/resources.html#solr-version-control  [R=301,NE]
 RewriteRule solr/mailing_lists.html solr/resources.html#community               [R=301,NE]
 
-
 # Simple redirect to "directory", so later rules match
 RedirectMatch temp ^/core/api$ /core/api/
 RedirectMatch temp ^/solr/api$ /solr/api/
@@ -91,24 +100,26 @@ RedirectMatch Permanent ^/solr/wiki.html https://cwiki.apache.org/confluence/dis
 ### old subprojects
 
 # old nutch redirects
-Redirect Permanent ^/nutch/docs/en/bot.html http://lucene.apache.org/nutch/bot.html
+Redirect Permanent ^/nutch/docs/en/bot.html https://lucene.apache.org/nutch/bot.html
 
-# hadoop graduated to TLP
-RedirectMatch Permanent ^/hadoop(.*) http://hadoop.apache.org/core$1
+# hadoop graduated to TLP, site strcuture has changed, do don't use $1 in redirect...
+RedirectMatch Permanent ^/hadoop(.*)$ https://hadoop.apache.org/
 
 #mahout is TLP
-RedirectMatch Permanent ^/mahout(.*) http://mahout.apache.org/$1
+RedirectMatch Permanent ^/mahout(.*)$ https://mahout.apache.org/$1
 
 # promote Tika to TLP
-RedirectMatch Permanent ^/tika/(.*)$ http://tika.apache.org/$1
+RedirectMatch Permanent ^/tika/(.*)$ https://tika.apache.org/$1
 
 # promote Nutch to TLP
-RedirectMatch Permanent ^/nutch/(.*)$ http://nutch.apache.org/$1
+RedirectMatch Permanent ^/nutch/(.*)$ https://nutch.apache.org/$1
 
 # Lucy has moved, site strcuture has changed, do don't use $1 in redirect...
-RedirectMatch Permanent ^/lucy/(.*)$ http://lucy.apache.org/
+RedirectMatch Permanent ^/lucy/(.*)$ https://lucy.apache.org/
+
 
 ### Javadocs & Solr Refguide
+# __root/docs.lucene.apache.org/content/ is a special alias added by INFRA-19439, so we can refer to stuff in other places like SVN
 
 RewriteRule ^core/(\d_\d_\d\b.*$) __root/docs.lucene.apache.org/content/core/$1 [PT]
 RewriteRule ^solr/(\d_\d_\d\b.*$) __root/docs.lucene.apache.org/content/solr/$1 [PT]