Posted By

nielsenrc on 01/13/11


Tagged

htaccess


Versions (?)

Redirect from non www to www


 / Published in: Apache
 

Add to .htaccess for seo purposes

  1. RewriteCond %{HTTP_HOST} ^example.com
  2. RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Report this snippet  

You need to login to post a comment.