Skip to content

Instantly share code, notes, and snippets.

@kjantzer
Created November 26, 2012 04:44
Show Gist options
  • Save kjantzer/4146644 to your computer and use it in GitHub Desktop.
Save kjantzer/4146644 to your computer and use it in GitHub Desktop.
.htaccess for WordPress when moving it to a different directory
# 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
@kjantzer
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment