cancel
Showing results for 
Search instead for 
Did you mean: 

Mod_rewrite, .htaccess and cakephp

TonyMJ
Newbie
Posts: 8
Registered: ‎01-08-2007

Mod_rewrite, .htaccess and cakephp

I'm trying to get cakephp working. This relies heavily on url rewriting using mod_rewrite commands in .htaccess. I read somewhere that Plusnet's cgi implementation of php means that .htaccess rewrite rules won't work. Is this correct?
I have a similar problem with search-friendly urls on my mambo website, but maybe that's because I haven't got the rewrite rule correct.
Tony
3 REPLIES 3
Peter_Vaughan
Grafter
Posts: 14,469
Registered: ‎30-07-2007

Re: Mod_rewrite, .htaccess and cakephp

mod_rewrite works fine - just do a search for it to find people using it.
What you can't do is protect any php files as php is run in cgi mode rather than as an Apache module.
TonyMJ
Newbie
Posts: 8
Registered: ‎01-08-2007

Re: Mod_rewrite, .htaccess and cakephp

Well mod_rewrite may be present, but it doesn't seem to work as it should. I installed cakephp on apache on my own PC and redirection works straight out of the box. Do I need to put some other directive in my .htaccess files?
Anyone else using .htaccess rewrite rules?
Tony
Peter_Vaughan
Grafter
Posts: 14,469
Registered: ‎30-07-2007

Re: Mod_rewrite, .htaccess and cakephp

Posting what you have in your .htaccess would help?