Mod_rewrite and urls that don't end with .php
- by Kevin Laity
I'm trying to use Mod_rewrite to hide the .php extensions of my pages.
However, it refuses to do any rewriting unless the input url ends with .php, which makes that impossible. I can confirm that rewriting works fine as long as the url has .php at the end.
RewriteRule a\.php b\.php
Works, while
RewriteRule a\.html b\.html
does not.
How can…