.htaccess rules to have cakephp in root and wordpress in subfolder

Posted by cc-mf on Stack Overflow See other posts from Stack Overflow or by cc-mf
Published on 2010-04-11T01:37:15Z Indexed on 2010/04/11 1:43 UTC
Read the original article Hit count: 279

Filed under:

Hello,

How can I combine the .htaccess rules for cakephp

RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]

with the following

RewriteEngine On

RewriteCond %{HTTP_HOST} folder.yoursite.com
RewriteRule ^(.*)$ /folder [L]

in other words redirect anything to app/webroot/ except /blog (wich is an exisiting folder with a wordpress installation) and redirect blog.domain.com to the blog subfolder

Thank you very much

© Stack Overflow or respective owner

Related posts about .htaccess