Trying small fix for redirecting and such

This commit is contained in:
Kasper Rynning-Tønnesen
2017-03-16 14:37:53 +01:00
parent 18e6c82e28
commit 9ae2634ec8
3 changed files with 9 additions and 6 deletions

View File

@@ -3,18 +3,20 @@ RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteCond %{HTTP_HOST} ^zoff.me
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://zoff.me/$1 [L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteCond %{HTTP_HOST} ^zoff.me
RewriteRule ^(.*)$ https://zoff.me/$1 [L]
RewriteCond %{HTTP_HOST} ^(.*zoff.me.*)$
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://zoff.me/$1 [L]
RewriteCond %{HTTP_HOST} ^zoff.no
RewriteRule ^/?(.*) https://zoff.me/$1 [L]
#RewriteCond %{HTTP_HOST} ^zoff.no
#RewriteRule ^/?(.*) https://zoff.me/$1 [L]
RewriteCond %{HTTP_HOST} ^remote.zoff.no
RewriteRule ^/?(.*) https://remote.zoff.me/$1 [L]