[thelist] making friendly urls

rudy r937 at interlog.com
Sun Aug 18 21:26:01 CDT 2002


> Plus, now, I have ONE article page that displays EVERY article.
> I don't want to end up static article pages, that defeats the purpose
> of a templated site driven by a DB.

tom, i agree completely

i have the same structure -- one article page for all articles

for example, http://rudy.ca/archive.cfm?archive=lookupinthesky

the archive page takes the url string, and pulls that article out of the
database

however, i have also designated the article page as my custom 404 page

now, the key to getting "search engine friendly urls" to work is that the
custom 404 page must know the file name of the requested file

so if someone requests http://rudy.ca/lookupinthesky.html, the archive page
gets called because that file doesn't exist!!  the archive page takes the
filename, does a lookup in the database, displays the article if it exists,
and if it doesn't, only then does the archive page issue the "oops" (404)
message

helps?

rudy




More information about the thelist mailing list