Skip to content

Instantly share code, notes, and snippets.

@alisonmf
Created October 16, 2014 15:44
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 alisonmf/90a71f204542ffa0d71a to your computer and use it in GitHub Desktop.
Save alisonmf/90a71f204542ffa0d71a to your computer and use it in GitHub Desktop.
301 rewrite move from sub folder to TLD
RewriteRule ^folder/(.*)$ http://domain.com/$1 [R=301,NC,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment