×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Apache
Posted by: Hendrik Goebel
Added: May 14, 2014 9:07 AM
Modified: May 14, 2014 9:23 AM
Views: 239
Tags: htaccess
  1. #rewrite non-www to www
  2. RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
  3. RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]