Posted By

minipark on 10/19/10


redirect htaccess www

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


.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 ^(.*)$$1 [r=301,NC,L]

Report this snippet  

You need to login to post a comment.