Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Rewrite Rules #12

Open
nomadicjosh opened this issue Aug 28, 2013 · 2 comments
Open

Rewrite Rules #12

nomadicjosh opened this issue Aug 28, 2013 · 2 comments

Comments

@nomadicjosh
Copy link

I am very weak in the department of rewrite rules. So, if my current rewrite rule is this:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

and all pages are in the form of http://example.com/controller/action/params/, how should I update the rewrite rules for db-to-api or is it best just to run it along side of the application instead of trying to integrate with? Thanks.

@gbinal
Copy link

gbinal commented Nov 23, 2013

@waldoj, @benbalter, or @philipashlock - any thoughts?

@ideonexus
Copy link

I use rewrite rules and had to get around the same problem. I found it easiest to add an "api" directory to the root of my application and have the rewrite rules ignore that directory completely. That way the db-to-api can use its own rewrite rules separate from my own application. The rule looks like this:

RewriteRule ^(api) - [L]

Hope I'm understanding the question correctly and that this helps.

Thanks,

ry

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants