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:33:55 UTC

[sling-site] branch master updated: made sure http to https redirect responds with 301

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 9b9a269  made sure http to https redirect responds with 301
9b9a269 is described below

commit 9b9a2691a643241d5dba8a4742e1cf3868a913c2
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Tue Dec 18 15:33:41 2018 +0100

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

diff --git a/src/main/jbake/assets/.htaccess b/src/main/jbake/assets/.htaccess
index 4335e50..3c6adb4 100644
--- a/src/main/jbake/assets/.htaccess
+++ b/src/main/jbake/assets/.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