Skip to content

Instantly share code, notes, and snippets.

@tahirtaous
Forked from ahmadawais/.htaccess
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tahirtaous/15dffe2a33cd6c060bb9 to your computer and use it in GitHub Desktop.
Save tahirtaous/15dffe2a33cd6c060bb9 to your computer and use it in GitHub Desktop.
#addthese two lines in the root folder of your old domain inside .htaccess file
RewriteEngine on
RewriteRule (.*) http://newdomain.com/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment