Skip to content

Instantly share code, notes, and snippets.

@mlambie
Created January 18, 2011 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlambie/784178 to your computer and use it in GitHub Desktop.
Save mlambie/784178 to your computer and use it in GitHub Desktop.
Apache redirect remove www
<VirtualHost *:80>
ServerName www.domain.com
ServerSignature Off
RewriteEngine On
RewriteRule ^(.*)$ http://domain.com$1 [L,R=301]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment