From 5bd056e10852c57bae2d1848f29c5fd7f35f684c Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Tue, 4 Jan 2022 09:29:52 +0100 Subject: [PATCH] Fix incorrect redirections on michsci-europe.com. WIP #4981 @0.25 --- public/.htaccess | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5