htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: New to htaccess - Quick Questions
PostPosted: 25 Apr 2008 16:44 
Offline

Joined: 25 Apr 2008 16: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: 09 May 2008 23:02 
Offline

Joined: 30 Oct 2006 19:55
Posts: 99
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 [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


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

Search for:
Powered by phpBB