Re:URL Rewriting for Beginners
by mseebach on Monday August 04, 2008 @12:57PM
(#266449)
Agreed. Indeed, most of the rewrites I've seen look like this:
RewriteRule .* /index.php
[ Parent
| on HN ]
Are you implying that the front-controller pattern is bad?
No, but mod_rewrite is not the only way of implementing it. In the mentioned case, index.php would implement a front-controller.
mod_rewrite is black magic, and will fail without suggesting why, just throwing a 500 Internal Server Error. Debugging a front controller in PHP (or whatever) it much easier.