Posted By

bbnnt on 08/10/08


apache config

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


apache config file remove www from url

 / Published in: Apache

remove the www usually located at the beginning of the url : -> -> -> etc...

  1. RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  2. RewriteRule ^(.*)$$1 [R=301,L]

Report this snippet  

You need to login to post a comment.