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/02/26 10:49:31 UTC

svn commit: r1057003 - /websites/production/lucene/content/.htaccess

Author: uschindler
Date: Wed Feb 26 10:49:31 2020
New Revision: 1057003

Log:
Add a Location header fixup (caused by directory-redirects)

Added:
    websites/production/lucene/content/.htaccess

Added: websites/production/lucene/content/.htaccess
==============================================================================
--- websites/production/lucene/content/.htaccess (added)
+++ websites/production/lucene/content/.htaccess Wed Feb 26 10:49:31 2020
@@ -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.
+
+# This fixes redirects generated by directory-without-slash to not have the __root in it:
+
+Header always edit Location /__root/docs.lucene.apache.org/content/(.*)$ /$1
+Header onsuccess edit Location /__root/docs.lucene.apache.org/content/(.*)$ /$1
+