Answers for "how to redirect website from .htaccess"

0

redirect htaccess non www to www

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

Code answers related to "how to redirect website from .htaccess"

Browse Popular Code Answers by Language