RockvilleLiving.com home page from "Eclipse" by artist Chica Brunsvold
  
Search:   

About

This page contains a single entry from the blog posted on August 20, 2007 4:10 PM.

The previous post in this blog was Rockville City Council Candidates.

The next post in this blog is New Arts and Innovation Center.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.35

« Rockville City Council Candidates | Main | New Arts and Innovation Center »

August 20, 2007: URL Redirecting

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.

TrackBack

TrackBack URL for this entry:
http://rockvilleliving.com/cgi-sys/cgiwrap/htriolo/managed-mt/mt-tb.cgi/22

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)



Home ·  Dining ·  Local Info ·  Things to Do ·  Shopping & Services ·  Blog ·  Contact ·  Add Your Organization