Posted By

CKOink on 04/27/11


redirect htaccess

Versions (?)

URL rewrite regular Expressions. (non-www) to (www)

 / Published in: HTML

Redirects all server inquires to the one url to reduce duplicate indexes. AKA. and

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

Report this snippet  

You need to login to post a comment.