- Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
My problem is that my custom application also needs this rewrite, but should hit /app.php instead of /index.php. So, in real life, it should work like this ... If a user requests "domain.com/books/add" the htaccess will push the request to the file "/app.php" but if they request any other page, it will push the request to the file "/index.php". Here is the thing, the rule should find all requests with "/books ..." in it. If the URL has it in there, it should push the request to "/app.php".
Is this possible? When it hits the "/app.php" file it should treat the URL and querystings just the same way.