Skip to content

Instantly share code, notes, and snippets.

@funvill
Created March 27, 2013 21:56
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 funvill/5258441 to your computer and use it in GitHub Desktop.
Save funvill/5258441 to your computer and use it in GitHub Desktop.
Redirect blog posts from the articles sub folder to the base directory.
RewriteEngine On
# If the request doesn't start /articles/wp-
RewriteCond %{REQUEST_URI} !^/articles/wp-
# Rewrite it:
RewriteRule ^articles/(.*) http://www.domain.com/$1 [L,R=301]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment