Skip to content

Commit

Permalink
update: .htaccess no www
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Dec 6, 2023
1 parent b72329d commit bc913d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site-root/public/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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} (.+)/$
Expand Down

0 comments on commit bc913d7

Please sign in to comment.