views:

227

answers:

3

I am using CakePHP framework, it redirect everything to the app folder using .htaccess, and then I set up a WordPress blog in /news/ folder outside of CakePHP, so I don't want everything in /news/ to be redirect, so I modify the .htaccess, and here is the final version:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/news/(.*)$
    RewriteRule ^.*$ - [L]
</IfModule>

<IfModule mod_rewrite.c>   
    RewriteEngine on   
    RewriteBase /   
    RewriteRule    ^$ app/webroot/    [L]   
    RewriteRule    (.*) app/webroot/$1 [L]   
</IfModule>

It's working fine in IE and FireFox, I can visit mydomain/news/, but in Google Chrome, it still redirects to CakePHP app folder. How can I fix this?

Update: I found that I can visit /news/somepage, but can't visit the /news/

A: 

Not sure about this one, but try with a user agent test - RewriteCond %{HTTP_USER_AGENT} ^BrowserName.* . Are you sending any additional headers?

Joey Ezekiel
I am not sure about other headers, here is my website: http://honstars.comthe news page:http://honstars.com/news/
Zack
+1  A: 

I can visit honstars.com/news/ with Chrome.Please check the set of you browser.

SpawnCxy
really? maybe it's about cache, thank you very much
Zack
Seconded. Mac Chrome (latest) it loads fine.
Travis Leleu
+2  A: 

Might want to try clearing your Chrome cache - if you had an old rule that caused a "hard" redirect or delivered a 404/403 status message, it may still be in there.

AvatarKava