Last active
June 30, 2018 12:05
-
-
Save remie/013e452b2f918f808501638ee171e8a3 to your computer and use it in GitHub Desktop.
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
########################################################################## | |
## Url rewrite ## | |
########################################################################## | |
RewriteEngine On | |
## Rewrite myotherdomain.com to mydomain.com | |
RewriteCond %{HTTP_HOST} ^myotherdomain.com$ [NC] | |
RewriteRule ^/(.*)$ http://mydomain.com/$1 [R=302,L] | |
## All other domains | |
RewriteRule "^(.*)$" "http://mydomain.com$1" [L,R=302,NC] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment