Custom directory...
Moderator: General Moderators
Custom directory...
How do i make a custom directory page when there is no index.php?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
mod_rewrite for a redirect if there is no index.
Redirect to somefile.php
Read up on file functions (namely opendir() and readdir() ) then make a start and we'll see how you get on.
The manual has an example of how to use readdir() to get the list of files quite convieniently enough if i remember correctly

Redirect to somefile.php
Read up on file functions (namely opendir() and readdir() ) then make a start and we'll see how you get on.
The manual has an example of how to use readdir() to get the list of files quite convieniently enough if i remember correctly
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
have a read: http://httpd.apache.org/docs/mod/mod_rewrite.html