- Code: Select all
RewriteRule ^(.*)\.html $1\.php
I am taking an all html site and making it dynamic with php. So I am using this to forward all html requests to php pages. My problem is when some one goes to "www.mysite.com/topic/" the php page will show since the html dosent actually exsist. I tried making DirectorIndex to be index.html but that dosent work. Is there a solution to make a index.html page that physically isnt there be the DirectoryIndex and point to the php?