issues with Mod Rewrite with folders inside wordpress page

I'm working on a client app and im using the Slim framework. the root of the site is a wordpress page

and my app stuff is under http://example.com/yumninja_app_1_0/api/

when you go to the url, it returns a 404, but the 404 is from the wordpress page.

the htaccess file on the root is:

<IfModule mod_rewrite.c>
RewriteEngine On
 RewriteBase /
 RewriteRule ^index\.php$ - [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
 </IfModule>

and the htaccess inside my folder (yumninja_app_1_0/api/) is

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

My question is how to exclude a folder from mod_rewrite?

Answers


Add this line before RewriteRule

RewriteCond %{REQUEST_URI} !^/(yumninja_app_1_0|yumninja_app_1_0/.*)$

Need Your Help

PHP Sorting from Serialized data

php mysql

I have a MySQL table with clients in it, the usual data, names, addresses, phone numbers etc etc i also have a field which is called 'roles' in which a client ticks off what they like to do i.e cod...

When to Call Method after Property Change

c# winforms events user-controls event-handling

I have a User Control that contains a list of items and I raise an event when the currentIndex changes, also, when it changes, I must call two other methods two verify and change the appearance of ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.