From b26fd88d6fad81c9f3bc14a70ef0c18e0256efa4 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 3 Jun 2015 22:49:46 +0200 Subject: [PATCH] Stripped www. from domain names --- public_html/.htaccess | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public_html/.htaccess b/public_html/.htaccess index 1889e7ef..521ddf98 100644 --- a/public_html/.htaccess +++ b/public_html/.htaccess @@ -4,6 +4,9 @@ DirectoryIndex index.html ErrorDocument 404 /404.html RewriteEngine On +RewriteBase / +RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] +RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteRule ^/?404.html$ /#/404 [NE,R,L]