5 ms·
Agreed. Indeed, most of the rewrites I've seen look like this: RewriteRule .* /index.php
by mseebach 18y ago
Agreed. Indeed, most of the rewrites I've seen look like this:
RewriteRule .* /index.php
- samataro 18y agoAre you implying that the front-controller pattern is bad?
- mseebach 18y agoNo, 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.