Return to Snippet

Revision: 7734
at August 10, 2008 12:38 by bbnnt


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

Initial URL


Initial Description
remove the www usually located at the beginning of the url :
www.url.com -> url.com
http://www.url.com/file.html -> http://url.com/file.html
http://www.url.com/directory/file.html -> http://url.com/directory/file.html
etc...

Initial Title
apache config file remove www from url

Initial Tags
apache

Initial Language
Apache