DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Redirect "http://www.domain" To "http://domain" With .htaccess

11.26.2008
| 5096 views |
  • submit to reddit
        
RewriteCond %{HTTP_HOST} ^www.(.*)
	RewriteRule ^(.*) http://%1/$1 [L,R=301]