[thelist] Mimicing a "normal" directory structure with mod_rewrite

Dave Stevens itsallaboutashlee at yahoo.co.uk
Sat Jul 9 08:43:07 CDT 2005

April wrote:

> I want to use mod_rewrite in a web directory so I can mimic a natural 
> directory structure like category/subcategory/subcategory/ while 
> overlaying one file like categories.php.  

Hi April,

I found mod_rewrite a little tricky to get my head around but stumbled 
across a way of achieving this using Apache's ForceType directive, after 
finding this article:


I managed to get that working without much difficulty.

If you did want to use mod_rewrite, there is a good tutorial here:


that I would have benefited from had I found it earlier!


How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

More information about the thelist mailing list