more https

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-22 15:14:13 +01:00
parent 5a4cf97008
commit 92036bec43

View File

@@ -2,8 +2,12 @@ Options +FollowSymLinks
RewriteEngine on RewriteEngine on
RewriteBase / RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%1/$1 [L] RewriteRule ^(.*)$ https://%1/$1 [L]
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [L]
RewriteCond %{HTTP_HOST} ^remote.zoff.no RewriteCond %{HTTP_HOST} ^remote.zoff.no
RewriteCond %{REQUEST_URI} !/static RewriteCond %{REQUEST_URI} !/static
RewriteRule ^(.*)$ php/controller.php [L,NC,QSA] RewriteRule ^(.*)$ php/controller.php [L,NC,QSA]