Posted By

section31 on 11/25/08


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

basicmagic
AshMan
vali29


Remove www from Domain


 / Published in: Apache
 

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

Report this snippet  

You need to login to post a comment.