Created
April 13, 2015 04:24
-
-
Save sean-kang/9edf74dc5ec27508e435 to your computer and use it in GitHub Desktop.
Domain redirection example
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www.hello.nz$ [NC] | |
RewriteRule ^(.*)$ http://hello.nz$1 [L,R=301] | |
</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^hello.co.nz$ [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.hello.co.nz$ [NC] | |
RewriteRule ^(.*)$ http://hello.nz$1 [L,R=301] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment