Last active
December 24, 2015 11:27
-
-
Save rakeshtembhurne/3832745 to your computer and use it in GitHub Desktop.
CakePHP: .htaccess file to run wordpress from webroot/blog 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
<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