Answers for "how to change www to non-www using .htaccess"

0

redirect www to non www

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
Posted by: Guest on May-29-2020

Code answers related to "how to change www to non-www using .htaccess"

Browse Popular Code Answers by Language