Skip to content

Commit 77cef7d

Browse files
committed
Strip www prefix
1 parent 693d355 commit 77cef7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web/.htaccess

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<IfModule mod_rewrite.c>
22
RewriteEngine On
3+
4+
RewriteCond %{HTTPS} !=on
5+
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
6+
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
7+
38
RewriteCond %{REQUEST_FILENAME} !-f
49
RewriteRule ^ index.php [L]
510
</IfModule>

0 commit comments

Comments
 (0)