Forum Moderators: phranque
I'm trying to diagnose a .htaccess/mod_rewrite problem on a client's machine. It is running Apache 1.3.33. I pretty quickly figured out what was causing my rewrite rules to never get executed...
On this box, a request for /foo will serve /foo.php if the file foo.php exists, and then, it seems, the ReWrite rules from .htaccess are not considered.
Does anybody know what configuration directive is causing this behaviour? Could it be a global ReWrite in their main Apache configuration. If so - is there any way to override this in a directory level rewrite?
I'm trying to rewrite /foo/bar.html to foo.php?q=bar using the following rule:
^foo/(.*).html$ foo.php?q=$1 [L]
Any ideas?