You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2018/12/18 14:28:06 UTC

[sling-site] branch master updated: redirect http to https

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

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


The following commit(s) were added to refs/heads/master by this push:
     new b3e6ed5  redirect http to https
b3e6ed5 is described below

commit b3e6ed50ce52d4192e10c39dd89cc500f034cb17
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Tue Dec 18 15:27:37 2018 +0100

    redirect http to https
---
 src/main/jbake/assets/.htaccess | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/src/main/jbake/assets/.htaccess b/src/main/jbake/assets/.htaccess
index a7d0065..4335e50 100644
--- a/src/main/jbake/assets/.htaccess
+++ b/src/main/jbake/assets/.htaccess
@@ -1,3 +1,22 @@
+# 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
+RewriteCond %{HTTPS} !=on
+RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
+
 # Set UTF-8 for text/plain and text/html
 AddDefaultCharset utf-8
 
@@ -113,4 +132,4 @@ Redirect Permanent /site/webdav.html /documentation/development/repository-based
 Redirect Permanent /site/wiki.html http://s.apache.org/sling.wiki
 Redirect Permanent /site/wrap-or-decorate-resources.html /documentation/the-sling-engine/wrap-or-decorate-resources.html
 Redirect Permanent /site/xslt-processing-pipeline.html /old-stuff/scriptengineintegration/xslt-processing-pipeline.html
-Redirect Permanent /javadoc-io.html /documentation/apidocs.html
\ No newline at end of file
+Redirect Permanent /javadoc-io.html /documentation/apidocs.html