Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite Rules #12

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

Rewrite Rules #12

parkerj opened this issue Aug 28, 2013 · 2 comments

Comments

@parkerj
Copy link

parkerj commented Aug 28, 2013

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants