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 <[email protected]> Authored: Tue Sep 11 08:14:17 2018 +0800 Committer: niclas <[email protected]> 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/
