Answers for "how to redirect main domain to www"

0

redirect to www.sitename

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

Code answers related to "how to redirect main domain to www"

Browse Popular Code Answers by Language