rewrite address bar url to include index.php if not there
Posted on 2004-05-03
lets say I have the following site
I need a way do that is a user goes to mysite.com/mydir
they will be redirected to http://mysite.com/mydir/index.php.
I know index.php is the default, but I want this to be displayed in the address bar. can I use mod_rewrite, and if so how.
just to recap I want all valid combinations of urls to display http://mysite.com/mydir/index.php in the address bar. This includes mysite.com/mydir, mysite.com/mydir/index.php, http://mysite.com/mydir.
any help would be great