Skip to content

Instantly share code, notes, and snippets.

@mjinayan80
Created September 16, 2018 11:08
Show Gist options
  • Save mjinayan80/7b5b41c0ba28dd7b17c0796c5c20eec4 to your computer and use it in GitHub Desktop.
Save mjinayan80/7b5b41c0ba28dd7b17c0796c5c20eec4 to your computer and use it in GitHub Desktop.
This way does it with links intact. That is www.oldsite.com/some/crazy/link.html will become www.newsite.com/some/crazy/link.html. This is extremely helpful when you are just “moving” a site to a new domain. Place this on the OLD site:
Redirect 301 / http://newsite.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment