Skip to content

Instantly share code, notes, and snippets.

@dplummer
Created August 21, 2013 17:35
Show Gist options
  • Save dplummer/6297469 to your computer and use it in GitHub Desktop.
Save dplummer/6297469 to your computer and use it in GitHub Desktop.
same htaccess redirect
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.new-domain.com$ [NC]
RewriteRule ^(.*)$ http://www.new-domain.com/$1 [L,R]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment