Created
November 14, 2012 21:00
-
-
Save falexandrou/4074780 to your computer and use it in GitHub Desktop.
Rewrite to a separate Wordpress installation dir
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
# When installing wordpress on a separate dir inside your $_SERVER['DOCUMENT_ROOT'] | |
# you may need to create a rewrite rule, otherwise wordpress will start complaining... | |
# | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /wordpress-installation-dir/wordpress/$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment