Wednesday, September 19, 2012

htaccess non-www to www


RewriteEngine on

RewriteBase /

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

<Files .htaccess>
order allow,deny
deny from all
</Files>

No comments:

Post a Comment