Created
November 26, 2012 04:44
-
-
Save kjantzer/4146644 to your computer and use it in GitHub Desktop.
.htaccess for WordPress when moving it to a different 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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Base is the URL path of the home directory | |
RewriteBase / | |
RewriteRule ^$ wordpress/index.php [L] | |
# Skip real files and directories | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
# Otherwise send it to WordPress | |
RewriteRule .* wordpress/index.php [L] | |
</IfModule> | |
# END WordPress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pulled this code from:
http://www.tractionco.com/blog/92-setting-up-wordpress-projects-with-subversion
In response to moving WordPress around as seen in here:
http://davidwinter.me/articles/2012/04/09/install-and-manage-wordpress-with-git/