Posted By

arrowj on 10/13/10


Tagged

htaccess


Versions (?)

no-www.org class b


 / Published in: HTML
 

URL: no-www.org

strips the www from all URLs on your domain

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

Report this snippet  

You need to login to post a comment.