diff --git a/.htaccess.prod b/.htaccess.prod index 595678b..bda2d8e 100755 --- a/.htaccess.prod +++ b/.htaccess.prod @@ -9,8 +9,11 @@ RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Remove www - RewriteCond %{HTTP_HOST} ^www\.freepo\.st$ [NC] - RewriteRule ^(.*)$ https://freepo.st/$1 [R=301] + RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] + RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L] + + # RewriteCond %{HTTP_HOST} ^www\.freepo\.st$ [NC] + # RewriteRule ^(.*)$ https://freepo.st/$1 [R=301] # Remove trailing slashes # RewriteRule (.*)/+$ https://freepo.st/$1 [NC,L,R=301,QSA]