logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

RE: Cool URIs don't change: improving C::A's URL dispatch: msg#00049

lang.perl.modules.cgi-appplication

Subject: RE: Cool URIs don't change: improving C::A's URL dispatch

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: cgiapp@xxxxxxxxxxxxxxxxx
> 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/cgiapp@xxxxxxxxxxxxxxxxx/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx



---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx







Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo