On a related note - I'd like to hear of any ideas other than mod_rewrite for
getting around the

http://del.icio.us/cgi-bin/recipes.cgi?username=markjugg;tag=vegan;tag=recip
es

style of URLs, which are often ignored by search engines. I tend to publish
content to static index pages, but to get to the next list of content
entries I dynamically query the db, and Google for one rarely follows the
dynamic link. 

My workaround has been to have a hidden (to the human eye) link on the index
page the lists every single piece of content. It works, but it's ugly.
Hopefully, if someone has a good idea for Mark's topic, I can twist it to me
needs...

Dan

> -----Original Message-----
> From: Mark Stosberg
> Sent: Wednesday, 23 November 2005 8:23 a.m.
> To: [email protected]
> Subject: [cgiapp] Cool URIs don't change: improving C::A's URL dispatch
> 
> One trend I see in new web apps is cleaner URLs.
> 
> They noticeably lack "/cgi-bin", script extensions, and often forego
> query strings to embed simple bits right in the URL.
> 
> So instead of:
> 
> http://del.icio.us/cgi-
> bin/recipes.cgi?username=markjugg;tag=vegan;tag=recipes
> 
> We have:
> 
> http://del.icio.us/markjugg/vegan+recipes
> 
> Under the covers, the shorter URL may very well be translated to something
> like
> the longer version.
> 
> Tim Berners-Lee also advocates clean URI's like this:
> http://www.w3.org/Provider/Style/URI
> 
> I think CGI::Application should have a way to help with this.
> 
> For reference, the Django framework does this:
> http://www.djangoproject.com/documentation/url_dispatch/
> 
> And Catalyst handles URL dispatch, too:
> http://search.cpan.org/~agrundma/Catalyst-
> 5.57/lib/Catalyst/Manual/Intro.pod#URL_Path_Handling
> 
> Django keeps the dispatch table as standalone thing (like our runmodes
> table in
> setup() ), while Catalyst uses subroutine attributes to keep the dispatch
> details for each run mode near it. (like our AutoRunmode plugin).
> 
> I prefer something like the Django approach, although it seems that either
> could be implemented as a plugin in our system.
> 
> We do have CGI::Application::Dispatch already, but it has a smaller
> scope-- it doesn't currently handle turning URL bits into run mode
> parameters from what I can tell.
> 
> Are others interested in this? Do you have favorite reference API for
> this, or a new one to suggest?
> 
>     Mark
> 
> 
> ---------------------------------------------------------------------
> Web Archive:  http://www.mail-archive.com/[email protected]/
>               http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to