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:56 UTC

[1/2] polygene-website git commit: Permanent redirect to httpS didn't work. Need something else.

Repository: polygene-website
Updated Branches:
  refs/heads/asf-site c8923a78f -> 49a595963


Permanent redirect to httpS didn't work. Need something else.


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

Branch: refs/heads/asf-site
Commit: 2f3fa6ea8b408bb0dfb9daab6f37955bc1463df7
Parents: c8923a7
Author: niclas <ni...@hedhman.org>
Authored: Tue Sep 11 08:12:18 2018 +0800
Committer: niclas <ni...@hedhman.org>
Committed: Tue Sep 11 08:12:18 2018 +0800

----------------------------------------------------------------------
 content/.htaccess | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-website/blob/2f3fa6ea/content/.htaccess
----------------------------------------------------------------------
diff --git a/content/.htaccess b/content/.htaccess
index c1f6418..8f4d81e 100644
--- a/content/.htaccess
+++ b/content/.htaccess
@@ -1,4 +1,3 @@
-Redirect / https://polygene.apache.org/
 Redirect 301 /content/ /
 Redirect 301 /1.0/ /java/1.0/
 Redirect 301 /1.2/ /java/1.2/


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

Posted by ni...@apache.org.
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/