This shouldn't be necessary if you are using CakePHP htaccess files, since
they include the appropriate htaccess options to only pass through the
"catch all" rule when the specified location is neither a file nor a
directory:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
This part:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
Tells mod_rewrite to only apply the rule for URI file names that do not
exist (neither as a directory nor a file).
-MI
---------------------------------------------------------------------------
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Jueves, 08 de Febrero de 2007 04:10 a.m.
Para: Cake PHP
Asunto: Re: Fatal Error
This will enable you to use directories like phpmyadmin. Setting
AllowOverride All on the main directory is sort of a must and very
nice to have. So, this will offset using it. Without this little
modification, when you go to the phpmyadmin folder, cake will tell you
that it cannot find that controller.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/stats/(.*)$
RewriteRule ^.*$ - [L]
</IfModule>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---