Using mod_rewrite for a RESTful api
- by razass
Say the user is making a request to the following url:
"http://api.example.com/houses/123/abc"
That request needs to map to "/webroot/index.php" and 'houses', '123', 'abc' need to be able to be parsed out of the URL in that index.php. It also can't alter the http headers or body.
There can be any number of variables after the domain ie)…