jaytaph/HTRouter — pull request #5 by joeynovak (2014-04-07 06:25:47+00:00)
Title: Fixes to allow CakePHP 2.x apps to run.

Hi Jaytaph,

Thanks for all your hardwork on this. I had a real need to run CakePHP apps on the built-in webserver for a project, and spent A LOT of time modifying this to work well.

I don't think you'll want to pull all my changes, but I made several tests work that didn't work before, I also have RewriteConditions working properly (I think).

I made a change to allow it to work on Windows.

And some other small things.

One change you probably don't want, is the change I made so that the php server serves the requests for static files itself... It works great, as long as the url for the resources hasn't been rewritten at all. (Which works great for CakePHP). I did this so that MIME types would be correct. We should probably add mod_mime to the list of modules so that complete projects can be hosted. (That's why I made the change, as the php internal webserver handles mime types itself).

Thanks Again!

Joey