From: Stephen Cameron Date: Tue, 4 Jan 2022 08:29:52 +0000 (+0100) Subject: Fix incorrect redirections on michsci-europe.com. WIP #4981 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5bd056e10852c57bae2d1848f29c5fd7f35f684c;p=pmi.git Fix incorrect redirections on michsci-europe.com. WIP #4981 @0.25 --- diff --git a/public/.htaccess b/public/.htaccess index 4603c25..f28bd85 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -9,11 +9,12 @@ RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + # Redirect all subdomains to www RewriteCond %{HTTP_HOST} =en.michsci-europe.com [OR] + RewriteCond %{HTTP_HOST} =staging.michsci-europe.com [OR] RewriteCond %{HTTP_HOST} =michsci-europe.com - RewriteRule ^(.*)$ https://staging.michsci-europe.com/$1 [R=301,L] + RewriteRule ^(.*)$ https://www.michsci-europe.com/$1 [R=301,L] - # Redirect all subdomains to www RewriteCond %{HTTP_HOST} =pmi.dev.cubedesigners.com [OR] RewriteCond %{HTTP_HOST} =staging.pm-instrumentation.com [OR] RewriteCond %{HTTP_HOST} =pm-instrumentation.com