I have a rewrite condition and rule which is.
RewriteCond %{DOCUMENT_ROOT}$0 !-f
RewriteRule ^[^*]+$ index.php [L]
I need to replace .html
with .php
in %{DOCUMENT_ROOT}$0
.
The reason is, I am rewriting my url's to .html
but when this file checks for an existing file it fails due to %{DOCUMENT_ROOT}$0
looking for file thefile.html
,
I need it to look for thefile.php
.