.htaccess tutorial

htaccess Elite


New to htaccess - Quick Questions

Ask your mod_rewrite and Redirection questions here, and get answers!

New to htaccess - Quick Questions

Postby booberry » 25 Apr 2008 16:44

I have this rule set up:
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?
booberry
 
Posts: 2
Joined: 25 Apr 2008 16:25

Re: New to htaccess - Quick Questions

Postby mod_rewrite » 09 May 2008 23:02

Huh? What do you want to be displayed when someone goes to /topic/ ? /topic/index.html? /topic/index.php /index.php/r=topic ?
mod_rewrite
 
Posts: 102
Joined: 30 Oct 2006 19:55


Return to Redirect or Rewrite Questions