polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [2/2] polygene-website git commit: Permanent redirect to httpS
Date Tue, 11 Sep 2018 00:14:57 GMT
Permanent redirect to httpS


Project: http://git-wip-us.apache.org/repos/asf/polygene-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-website/commit/49a59596
Tree: http://git-wip-us.apache.org/repos/asf/polygene-website/tree/49a59596
Diff: http://git-wip-us.apache.org/repos/asf/polygene-website/diff/49a59596

Branch: refs/heads/asf-site
Commit: 49a595963d58b41c8c7f5d3955b6787b459cb071
Parents: 2f3fa6e
Author: niclas <niclas@hedhman.org>
Authored: Tue Sep 11 08:14:17 2018 +0800
Committer: niclas <niclas@hedhman.org>
Committed: Tue Sep 11 08:14:17 2018 +0800

----------------------------------------------------------------------
 content/.htaccess | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-website/blob/49a59596/content/.htaccess
----------------------------------------------------------------------
diff --git a/content/.htaccess b/content/.htaccess
index 8f4d81e..8839c7e 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -1,3 +1,8 @@
+# Rewrite to SSL/HTTPS
+RewriteEngine On
+RewriteCond %{HTTPS} !=on
+RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
+
 Redirect 301 /content/ /
 Redirect 301 /1.0/ /java/1.0/
 Redirect 301 /1.2/ /java/1.2/


Mime
View raw message