I'm trying to debug URL rewriting on a hosted site, where I don't have access to vhost.conf
and so can't set up a rewrite log. How else can I debug rules that aren't working?
This is the rule I'm trying to straighten out, if anyone has any insight:
RewriteRule ^([^/]+)\.([^/]+)$ xslt.php [L]
What I expect to have happen: URLs that have dots but no slashes to be rewritten to point to xslt.php
and then stop rewriting, so that it doesn't go into a loop. What actually happens? 500 Internal Server Error (which smells like it is looping). I know I can add a RewriteCond
to specifically exclude xslt.php
, but I'd prefer to understand why this is breaking first.