htaccess redirect www to main domain non-www #htaccess


Updated July 12, 2013 ‚óŹ 451 views
If you want your website to redirect www to non-www domain. You only need to put the following rules in the .htaccess file:

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

0 Comments




Our Terms of Use and Privacy Policy have changed.
By continuing to use this site, you are agreeing to the new Privacy Policy and Terms of Use.