htaccess Elite

Hire htaccesselite professional

.htaccess tutorial


All times are UTC - 5 hours





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: New to htaccess - Quick Questions
PostPosted: Apr 25th, '08, 10:44 

Joined: Apr 25th, '08, 10:25
Posts: 2
I have this rule set up:
Code:
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?


Top
 Profile  
 
 Post subject: Re: New to htaccess - Quick Questions
PostPosted: May 9th, '08, 17:02 

Joined: Oct 30th, '06, 13:55
Posts: 89
Huh? What do you want to be displayed when someone goes to /topic/ ? /topic/index.html? /topic/index.php /index.php/r=topic ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB