Skip to content

Commit f91cf0c

Browse files
committed
Redirect 'www' urls to the naked domain.
1 parent 3b1e8fa commit f91cf0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.htaccess

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ AddHandler php54-cgi .php
33

44
# Updates here should coincide with rp.getRestOfUrl()
55
RewriteEngine On
6+
7+
RewriteBase /
8+
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
9+
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
10+
611
RewriteRule ^r/(.*) /index.html
712
RewriteRule ^user/(.*) /index.html
813
RewriteRule ^domain/(.*) /index.html

0 commit comments

Comments
 (0)