From f988034b107022b861bf4723e9aba442a5fea790 Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Mon, 3 Jun 2019 12:51:16 +0200 Subject: [PATCH] Force domain redirect and HTTPS. Done #2800 @1.5 --- .htaccess | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- 2.39.5