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:25:32 UTC

polygene-website git commit: Put the working redirect in src/ as well

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


Put the working redirect in src/ as well


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

Branch: refs/heads/asf-site
Commit: 71a12d48105931c6ec63ed6eacf17105335053e4
Parents: 49a5959
Author: niclas <ni...@hedhman.org>
Authored: Tue Sep 11 08:25:20 2018 +0800
Committer: niclas <ni...@hedhman.org>
Committed: Tue Sep 11 08:25:20 2018 +0800

----------------------------------------------------------------------
 src/htaccess | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-website/blob/71a12d48/src/htaccess
----------------------------------------------------------------------
diff --git a/src/htaccess b/src/htaccess
index 9bf6601..903c5ac 100644
--- a/src/htaccess
+++ b/src/htaccess
@@ -2,7 +2,10 @@
 layout: none 
 permalink: .htaccess
 ---
-Redirect / https://polygene.apache.org/
+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/