From 839eaa6db92aec148f0bff3ce9c5fe7b04c323b7 Mon Sep 17 00:00:00 2001 From: James Collins Date: Mon, 6 Feb 2023 14:25:42 +1000 Subject: [PATCH] add www subdomain if missing --- public/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/.htaccess b/public/.htaccess index 3aec5e2..2522f5c 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -5,6 +5,10 @@ RewriteEngine On + # Add www subdomain if missing + RewriteCond %{HTTP_HOST} ^stemmechanics.com.au$ [NC] + RewriteRule (.*) https://www.stemmechanics.com.au/$1 [R=301,L] + # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]