[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:

http://www.sitepoint.com/article/search-engine-friendly-urls/3

I managed to get that working without much difficulty.

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

http://www.devshed.com/c/a/Apache/Search-Engine-Friendly-URLs-with-mod-rewrite/

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

Cheers
Dave

		
___________________________________________________________ 
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