Created
May 14, 2012 11:15
-
-
Save petercossey/2693409 to your computer and use it in GitHub Desktop.
htaccess redirect
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
Options +FollowSymlinks | |
RewriteEngine on | |
RewriteCond %{http_host} ^original-url.com [nc] | |
RewriteRule ^(.*)$ http://www.where-you-want-it-to-go.com/ [r=302,nc] | |
# Redirect domain and all subdomains | |
RewriteCond %{http_host} ^(.*)original-domain\.com [nc] | |
RewriteRule ^(.*)$ http://www.new-domain.com [r=302,nc] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment