I need a rewriterule so if i type index.html i will show index.php
I mean i have files like, home.php, about.php and i want to be able to access them with .html too
Thanks in advance
I need a rewriterule so if i type index.html i will show index.php
I mean i have files like, home.php, about.php and i want to be able to access them with .html too
Thanks in advance
Simplest solution:
RewriteRule ^(.*)\.html$ $1.php
To support htm
, HTML
, hTmL
, etc. use:
RewriteRule ^(.*)\.html?$ $1.php [NC]