views:

43

answers:

1

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

+5  A: 

Simplest solution:

RewriteRule ^(.*)\.html$ $1.php

To support htm, HTML, hTmL, etc. use:

RewriteRule ^(.*)\.html?$ $1.php [NC]
Max Shawabkeh