From 67ae9159bc5007d5890aeeb99459bb696a9c5251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 28 Feb 2017 19:22:29 +0100 Subject: [PATCH] More .me redirects --- .htaccess | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.htaccess b/.htaccess index 90ec48c0..e793cc3a 100755 --- a/.htaccess +++ b/.htaccess @@ -1,16 +1,23 @@ Options +FollowSymLinks RewriteEngine on RewriteBase / + RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteCond %{HTTPS} !=on -RewriteRule ^(.*)$ https://%1/$1 [L] +RewriteRule ^(.*)$ https://zoff.me/$1 [L] -RewriteCond %{HTTP_HOST} ^(.*\.)?zoff\.no$ -RewriteRule ^/(.*)$ http://%zoff.me/$1 [L,NC,QSA] +RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] +RewriteRule ^(.*)$ https://zoff.me/$1 [L] RewriteCond %{HTTP_HOST} ^(.*zoff.me.*)$ RewriteCond %{HTTPS} !=on -RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [L] +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] RewriteCond %{HTTP_HOST} ^remote.zoff.me RewriteCond %{REQUEST_URI} !/public/css