Skip to content

Instantly share code, notes, and snippets.

@Takaya213
Created September 12, 2014 06:05
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 Takaya213/3b1f8233ab2184617ab8 to your computer and use it in GitHub Desktop.
Save Takaya213/3b1f8233ab2184617ab8 to your computer and use it in GitHub Desktop.
301 Redirects
Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html
Redirect 301 /oldpage2.html http://www.yoursite.com/folder/
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