Re: Parsing args without ?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 49185
interpreted = N
texte = Check the archives on ways to handle 404 errors via WebDNA's errormessages.db.As one example, I have virtual pages for each of the 3000+ products at GrowOrganic.com, such as:http://www.groworganic.com/a/item_F2100.htmlThere is no physical page named item_F2100.html, but rather my errormessages.db includes an error handling page for 404 errors which, in this case, loads the page item_.html, which then checks [thisurl], pulls out the product SKU, and returns the appropriate content for that product.Note that this method would only work with your example URL if pages with no suffix (2175751) were being mapped to WebDNA - any 404 errors that aren't for suffixes handled by WebDNA won't go through WebDNA's error handling code. That's why I included the parameter in the page's file name.- brianOn Friday, April 4, 2003, at 08:25 AM, Michael Davis wrote:> In order to make dynamic urls more spider friendly, I've noticed many > sites using this kind of construct: > http://www.clickz.com/feedback/buzz/article.php/2175751 > where args are delimited by / and there is no ? as a separator. If we > wanted to do this with WebDNA, how would we do it? How do you get the > web server to hand this url, which looks like a missing file named > 2175751, to a tpl file? (or in that case, a php file) Maybe this is > all done in an error template that parses the [thisURL] context for > the location of the template and the args that follow it? Maybe this > is a job for mod_rewrite? Anyone have any experience with this? > > Mike > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Parsing args without ? (Alain Russell 2003)
  2. Re: Parsing args without ? (Brian Fries 2003)
  3. Re: Parsing args without ? (Glenn Busbin 2003)
  4. Re: Parsing args without ? (Matthew A Perosi 2003)
  5. Parsing args without ? (Michael Davis 2003)
Check the archives on ways to handle 404 errors via WebDNA's errormessages.db.As one example, I have virtual pages for each of the 3000+ products at GrowOrganic.com, such as:http://www.groworganic.com/a/item_F2100.htmlThere is no physical page named item_F2100.html, but rather my errormessages.db includes an error handling page for 404 errors which, in this case, loads the page item_.html, which then checks [thisurl], pulls out the product SKU, and returns the appropriate content for that product.Note that this method would only work with your example URL if pages with no suffix (2175751) were being mapped to WebDNA - any 404 errors that aren't for suffixes handled by WebDNA won't go through WebDNA's error handling code. That's why I included the parameter in the page's file name.- brianOn Friday, April 4, 2003, at 08:25 AM, Michael Davis wrote:> In order to make dynamic urls more spider friendly, I've noticed many > sites using this kind of construct: > http://www.clickz.com/feedback/buzz/article.php/2175751 > where args are delimited by / and there is no ? as a separator. If we > wanted to do this with WebDNA, how would we do it? How do you get the > web server to hand this url, which looks like a missing file named > 2175751, to a tpl file? (or in that case, a php file) Maybe this is > all done in an error template that parses the [thisurl] context for > the location of the template and the args that follow it? Maybe this > is a job for mod_rewrite? Anyone have any experience with this? > > Mike > -- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Brian Fries

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[Sum] function? (1997) Is the list server working? (1998) Date Sorting (1997) WebCat2 Append problem (B14Macacgi) (1997) Need relative path explanation (1997) Trouble with formula.db (1997) products db philosophy (2001) Unusual characters in the db ... (2002) transferring values (1998) WebCatalog dying in WebTen Revisited (1998) Confirming a bug/oddity (2003) Setting up the server (1997) Error Messages Returned to User (1997) [WebDNA] [OT] Apple iPad (2010) Template transformed itself into a database? (1998) Snake Bites (1997) WebCatalog can't find database (1997) errormessages.db (1997) Security Issue (1999) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)