views:

364

answers:

1

Hi

I have a CakePHP installation in a sub folder in my server, I want to install another application inside that subfolder:

root/public_html/subfolder/cake/
root/public_html/subfolder/app/

etc. now I need a custom application installed there:

root/public_html/subfolder/my_custom_application/

I have something like this in my .htaccess:

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

How can I configure it to exclude the "my_custom_application" folder from that rules?

I tried this:

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

But I get this:

Error:  The requested address '/y_custom_application' was not found on this server.

Thanks in advance.

Mauricio.

+1  A: 

Put this before the RewriteRule lines:

RewriteCond %{REQUEST_URI} !^/my_custom_application
Ignacio Vazquez-Abrams
Hi, thanks for the tip, but I still have the same error:Error: The requested address '/my_custom_application' was not found on this server.this time with the "m" of "my_custom_application"
Mauricio
Then the rule is working properly. The problem is elsewhere.
Ignacio Vazquez-Abrams