Web Application Developer.

September 15th, 2007

More ModRewrite - Using a dbm file instead of a txt file
September 15th 7:36 PM

So i'm using ModRewrite to do a 1-to-1 forwarding list of urls on a website where my cms can write to the map file automatically (so we don't have to edit httpd.conf every time we want to add or remove an entry).

The problem is that if the text file gets long enough (probably way longer than mine is, but i'm an efficiency freak, and having a hundred lookups before the user ever gets to your page is excessive).

So I decided to use a .dbm file (which is a hashed file of 1-to-1 matched phrases, Dbm on wikipedia). The problem is that the documentation for ModRewrite really sucks sometimes, and it doesn't explain fully how to get all the way through the process, which leaves you guessing sometimes.




Read More »


Posted by Jeremy Tunnell| Comments (3)
 


Other Tags