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

Burhan Khalid thelist at meidomus.com
Sat Jul 9 09:26:37 CDT 2005


Dave Stevens wrote:
> 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/ 

There is also one on evolt.org if I remember correctly.


More information about the thelist mailing list