How do I redirect www.url.com to non www.url.com
Simply add the following code to your .htaccess file and change example.com to your own domain name:
RewriteEngine On RewriteCond %{HTTP_HOST} ^www.example.com [nocase] RewriteRule ^(.*) http://example.com/$1 [last,redirect=301] |
||
![]()
|