: Changing www to point to non-www, instead of the opposite, using .htaccess I'm switching servers and need to change the following RewriteCond and RewriteRule commands in the .htaccess file. Right
I'm switching servers and need to change the following RewriteCond and RewriteRule commands in the .htaccess file.
Right now I'm pointing domain.com to domain.com using:
RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule ^(.*)$ "http://www.domain.com/" [R=301,L]
I need to switch the commands and do the opposite, where I point domain.com to domain.com.
More posts by @Deb1703797
1 Comments
Sorted by latest first Latest Oldest Best
You just need to change the URL structure in the same two lines:
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ domain.com/ [R=301,L]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.