5kits zhao

Redirecting non-www to www with .htaccess

Hi
below the redirection

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

thank you.

Leave a Reply