Created
January 18, 2011 09:14
-
-
Save mlambie/784178 to your computer and use it in GitHub Desktop.
Apache redirect remove www
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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