Last active
August 29, 2015 13:57
-
-
Save amolkhanorkar/9501630 to your computer and use it in GitHub Desktop.
Redirect Rule in Apache2
This file contains hidden or 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> | |
. | |
. | |
. | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com [NC] | |
RewriteRule ^(.*)$ http://www.example.com$1 [R=301,NC,L] | |
. | |
. | |
. | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment