Over the weekend, I wrote a script I've been meaning to get around to for awhile: one that runs through the database contents and converts URL's like "rockvilleliving.com/listcategory.php?cat=94" into something more meaningful like "rockvilleliving.com/apartments_townhouses", creating a list that can be put into an htaccess file in this form:
RewriteRule ^apartments_townhouses$ listcategory.php?cat=94 [NC,L]
(where NC means ignore the case, and L means don't process any more rules if this one is a match). This does an automatic redirect to the right php page, as is done with the Quick directory lookup at the top of this page for example, and makes those pages more search-engine indexable (they won't appear to be dynamically generated) and also more recognizable and memorable. This page has a good description of the how and why of doing rewrites.











