commit | 49a595963d58b41c8c7f5d3955b6787b459cb071 | [log] [tgz] |
---|---|---|
author | niclas <niclas@hedhman.org> | Tue Sep 11 08:14:17 2018 +0800 |
committer | niclas <niclas@hedhman.org> | Tue Sep 11 08:14:17 2018 +0800 |
tree | c0518c85e4e38514816da2acdea8339811e18904 | |
parent | 2f3fa6ea8b408bb0dfb9daab6f37955bc1463df7 [diff] |
Permanent redirect to httpS
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/