I would like to have any requests for www.example.com to be redirected to http://example.com
I have this:
- Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} example\.com
RewriteRule ^(.*) http://example.com/$1 [R]
and there are no errors, but when I go to www.example.com, that address still shows up in the address bar. What kind of flags do I need to pass in order for the www to completely disappear?