You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by ni...@apache.org on 2018/09/11 00:14:57 UTC

[2/2] polygene-website git commit: Permanent redirect to httpS

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 <ni...@hedhman.org>
Authored: Tue Sep 11 08:14:17 2018 +0800
Committer: niclas <ni...@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/