From bc913d7182d6587899fd397ebf04c703719cc3b9 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Wed, 6 Dec 2023 10:45:02 -0500 Subject: [PATCH] update: .htaccess no www --- site-root/public/.htaccess | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site-root/public/.htaccess b/site-root/public/.htaccess index 1eee24b..00f3fd8 100644 --- a/site-root/public/.htaccess +++ b/site-root/public/.htaccess @@ -9,6 +9,11 @@ RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + # Always remove www + RewriteEngine on + RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] + RewriteRule ^(.*)$ http://%1/$1 [R=301,L] + # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$