.htaccess update

This commit is contained in:
Kasper Rynning-Tønnesen
2017-02-28 18:50:35 +01:00
parent 0cab9db135
commit 9a4004a166

View File

@@ -5,6 +5,9 @@ RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%1/$1 [L]
RewriteCond %{HTTP_HOST} ^(.*\.)?zoff\.no$
RewriteRule ^/(.*)$ http://%zoff.me/$1 [L,NC,QSA]
RewriteCond %{HTTP_HOST} ^(.*zoff.me.*)$
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [L]