From: Stephen Cameron Date: Mon, 3 Jun 2019 10:51:16 +0000 (+0200) Subject: Force domain redirect and HTTPS. Done #2800 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=swedish-care.git Force domain redirect and HTTPS. Done #2800 @1.5 --- diff --git a/.htaccess b/.htaccess index 80c0e3e..e441089 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,16 @@ + + +# Redirect other domains like carita.nu +RewriteCond %{HTTP_HOST} !^www.swedish-care\.se$ [NC] +RewriteRule ^(.*)$ https://www.swedish-care.se/$1 [L,R=301] + +# Force HTTPS +RewriteCond %{HTTPS} off +RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] + + + + # Downgrade PHP (Surftown) - remove this line if you want newer and faster AddType application/x-httpd-php-old .php