Avoid htaccess redirecting to one folder Yii

Posted by JG Estevez on Stack Overflow See other posts from Stack Overflow or by JG Estevez
Published on 2014-05-31T21:20:04Z Indexed on 2014/05/31 21:26 UTC
Read the original article Hit count: 309

Filed under:
|
|
|

I have a website running over Yii Framework, I created a folder in the root path named blog, I installed a wordpress blog under this folder, but the files .htaccess that comes with yii is trying to redirect my request to www.domain.com/blog to the controller/action type which I don't want, I want to treat the blog folder as a completely app with no relation to yii.

here is what I've done so far

Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteCond %{REQUEST_URI} "/blog/"
RewriteRule (.*) $1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php

as you can see I added the conditions to avoid redirecting for the blog folder but when I try to access the the url is telling me The page isn't redirecting properly.

How can I solve this??

thanks

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about .htaccess