Answers for "redirect http non www to www cpanel"

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
0

How to redirect non-www URLs to www

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 "redirect http non www to www cpanel"

Browse Popular Code Answers by Language