]> _ Git - pmi.git/commitdiff
Fix incorrect redirections on michsci-europe.com. WIP #4981 @0.25
authorStephen Cameron <stephen@cubedesigners.com>
Tue, 4 Jan 2022 08:29:52 +0000 (09:29 +0100)
committerStephen Cameron <stephen@cubedesigners.com>
Tue, 4 Jan 2022 08:29:52 +0000 (09:29 +0100)
public/.htaccess

index 4603c25a21d43898468f52de3686006d501a4109..f28bd85323d61b23158a290bcc9bd89449d4e04b 100644 (file)
@@ -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