Created
March 27, 2013 21:56
-
-
Save funvill/5258441 to your computer and use it in GitHub Desktop.
Redirect blog posts from the articles sub folder to the base directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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