Cakephp, mode rewrite

I am installing my cakephp application but I seem to have problems with mode-rewrite.

I see the error maximun number of internal redirects exceeded.

What is wrong?
I have this application at a folder of the root.

intranet/csa.I test it at xampp with no problem

<IfModule mod_rewrite.c>
 RewriteBase /csa/
    RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
webroot htacces
<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteBase /csa/
   RewriteRule    ^$ app/webroot/    [L]
  RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

dimis,

Oh, my! :eek2:

A webmaster would KNOW whether mod_rewrite’s enabled or not and NEVER use the <IfModule> wrappers (once, let alone TWICE) in an .htaccess where they’re tested on EVERY file request!

Further to your code,

[COLOR="Red"]<IfModule mod_rewrite.c>[/COLOR]
RewriteBase /csa/
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
[COLOR="Red"]</IfModule>[/COLOR]
# at this point, ALL {REQUEST_URI} strings have been redirected to index.php
# webroot htacces
[COLOR="Red"]<IfModule mod_rewrite.c>[/COLOR]
[COLOR="Red"] RewriteEngine on[/COLOR]
# duplication - WHY?
 RewriteBase /csa/
   RewriteRule    ^$ app/webroot/    [L]
  RewriteRule    (.*) app/webroot/$1 [L]
[COLOR="Red"]</IfModule>[/COLOR]
# Redirecting EVERYTHING to app/webroot/{yadda-yadda}
# to be redirected again to index.php
# to be redirected again to app/webroot/{yadda-yadda}
# ...

FIRST, you must understand what you’re doing enough to write a specification for your mod_rewrite. What do you want it to do? Are there any exceptions (like the NOT file and NOT directory of your first section of code)? ONLY then can you write effective code.

Regards,

DK