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

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


The following commit(s) were added to refs/heads/asf-site by this push:
     new 6f86954  made sure http to https redirect responds with 301
6f86954 is described below

commit 6f86954feba9d8d7628c3f3202fff77f671d01e1
Author: Radu Cotescu <[email protected]>
AuthorDate: Tue Dec 18 15:45:14 2018 +0100

    made sure http to https redirect responds with 301
---
 .htaccess | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.htaccess b/.htaccess
index 4335e50..3c6adb4 100644
--- a/.htaccess
+++ b/.htaccess
@@ -15,7 +15,7 @@
 
 RewriteEngine On
 RewriteCond %{HTTPS} !=on
-RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
+RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
 
 # Set UTF-8 for text/plain and text/html
 AddDefaultCharset utf-8

Reply via email to