Stripped www. from domain names

This commit is contained in:
Marcin Kurczewski 2015-06-03 22:49:46 +02:00
parent a69f8563e8
commit b26fd88d6f

View file

@ -4,6 +4,9 @@ DirectoryIndex index.html
ErrorDocument 404 /404.html ErrorDocument 404 /404.html
RewriteEngine On RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteRule ^/?404.html$ /#/404 [NE,R,L] RewriteRule ^/?404.html$ /#/404 [NE,R,L]