Skip to content

Instantly share code, notes, and snippets.

@rakeshtembhurne
Last active December 24, 2015 11:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save rakeshtembhurne/3832745 to your computer and use it in GitHub Desktop.
Save rakeshtembhurne/3832745 to your computer and use it in GitHub Desktop.
CakePHP: .htaccess file to run wordpress from webroot/blog directory
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/blog.*
RewriteCond %{REQUEST_URI} !-f
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_URI} !^/blog.*
RewriteCond %{REQUEST_URI} !-d
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment