Skip to content

Instantly share code, notes, and snippets.

@girol
Created September 12, 2017 20:44
Show Gist options
  • Save girol/95bdb32eca36f09df54310b08c5dc7bf to your computer and use it in GitHub Desktop.
Save girol/95bdb32eca36f09df54310b08c5dc7bf to your computer and use it in GitHub Desktop.
Apache htaccess http redirect
# Change as you need
# Rename this file to .htaccess and put into your website's DocumentRoot folder.
# It needs Rewrite module enabled in your system
# Other HTTP status codes works as well, as 302, and so on...
Redirect 301 /some_folder http://my_redirected_website.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment