Error using .htaccess redirect to remove www
-
I have a client whose URL automatically appears with a “www” and she would like it removed. There is no .htaccess file, so I added one with the usual method for removing the www:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L]When I do this, reloading the page results in an error and the page will not load. I have a feeling the above fix is disagreeing with something in WordPress, but I do not know what. Any help is greatly appreciated.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Error using .htaccess redirect to remove www’ is closed to new replies.