Skip to content

Instantly share code, notes, and snippets.

@falexandrou
Created November 14, 2012 21:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save falexandrou/4074780 to your computer and use it in GitHub Desktop.
Save falexandrou/4074780 to your computer and use it in GitHub Desktop.
Rewrite to a separate Wordpress installation dir
# 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