Posted By

minipark on 10/19/10


Tagged

redirect htaccess www


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

kubaitis


.htaccess redirect www subdomain to second level domain


 / Published in: Apache
 

  1. # Redirect without www prefix
  2. RewriteCond %{HTTP_HOST} ^www\.example\.net$ [NC]
  3. RewriteRule ^(.*)$ http://example.net/$1 [r=301,NC,L]

Report this snippet  

You need to login to post a comment.