[thisURL] (was pre-parse hell)

This WebDNA talk-list message is from

2008


It keeps the original formatting.
numero = 69833
interpreted = N
texte = Ok, I'm trying to do friendly URLs. I have done them in the past with no prob using ErrorMessages.db The old URLs (that worked) looked like this: http://www.thewebsite.com/City_Industry_subcategory-1234567890.html I have changed the URL structure to now look like this: 1) http://www.thewebsite.com/main-category.html 2) http://www.thewebsite.com/main-category/sub-category.html 3) http://www.thewebsite.com/main-category/sub-category/business-name.html None of the above pages actualy exist of course and trigger 404 errors, which I catch w/ErrorMessages.db In ErrorMessages.db I have 'TemplateNotFound' set to [include file=interpret.inc] In interpret.inc I parse it all out. #1 URL works fine and includes interpret.inc, but #2 & #3 do not and throw an Apache 404 (I assume... it's not a WebDNA error). That's where I am confused. Why wouldn't #2 & #3 let ErrorMessages.db do it's thing? Why bypass it? I have a test page set up and **all 3 url structures work fine** when I hard-code a value for [thisURL]. I am going nuts over this... any thoughts at all would help. Thanks, -Dan On Thu, 21 Feb 2008 11:13:22 -0800 "Dan Strong" wrote: > Of course, and I am currently checking to see if it might be a loose nut behind the keyboard :) > > > On Thu, 21 Feb 2008 13:20:52 -0600 > Clint Davis wrote: >> Have you searched for an id10t error? >> >> :) >> >> >> On Feb 21, 2008, at 12:04 PM, Dan Strong wrote: >> >>> No takers? Not even a >>> 5) PEBKAC error? :) >>> >>> >>> >>> On Thu, 21 Feb 2008 08:50:27 -0800 >>> "Dan Strong" wrote: >>>> Any obvious ideas besides what I can think of why some code would >>>> work in a template at the root level of a site, but not when >>>> pasted into the pre-parse script? >>>> 1) Path problems - can't be the issue since all paths point to >>>> globals (^) >>>> 2) Permissions - re-permed over and over... no change >>>> 3) Some top-secret, undocumented pre-parse behavior - maybe. >>>> 4) ????????? >>>> I'm going into day 2 of this and it's driving me mad. Any fresh >>>> ideas would be greatly appreciated. >>>> Thanks, >>>> -Dan >> >> ------------------------------------------------------------- >> 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/ > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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: [thisURL] (was pre-parse hell) ( Stuart Tremain 2008)
  2. [thisURL] (was pre-parse hell) ( "Dan Strong" 2008)
Ok, I'm trying to do friendly URLs. I have done them in the past with no prob using ErrorMessages.db The old URLs (that worked) looked like this: http://www.thewebsite.com/City_Industry_subcategory-1234567890.html I have changed the URL structure to now look like this: 1) http://www.thewebsite.com/main-category.html 2) http://www.thewebsite.com/main-category/sub-category.html 3) http://www.thewebsite.com/main-category/sub-category/business-name.html None of the above pages actualy exist of course and trigger 404 errors, which I catch w/ErrorMessages.db In ErrorMessages.db I have 'TemplateNotFound' set to [include file=interpret.inc] In interpret.inc I parse it all out. #1 URL works fine and includes interpret.inc, but #2 & #3 do not and throw an Apache 404 (I assume... it's not a WebDNA error). That's where I am confused. Why wouldn't #2 & #3 let ErrorMessages.db do it's thing? Why bypass it? I have a test page set up and **all 3 url structures work fine** when I hard-code a value for [thisurl]. I am going nuts over this... any thoughts at all would help. Thanks, -Dan On Thu, 21 Feb 2008 11:13:22 -0800 "Dan Strong" wrote: > Of course, and I am currently checking to see if it might be a loose nut behind the keyboard :) > > > On Thu, 21 Feb 2008 13:20:52 -0600 > Clint Davis wrote: >> Have you searched for an id10t error? >> >> :) >> >> >> On Feb 21, 2008, at 12:04 PM, Dan Strong wrote: >> >>> No takers? Not even a >>> 5) PEBKAC error? :) >>> >>> >>> >>> On Thu, 21 Feb 2008 08:50:27 -0800 >>> "Dan Strong" wrote: >>>> Any obvious ideas besides what I can think of why some code would >>>> work in a template at the root level of a site, but not when >>>> pasted into the pre-parse script? >>>> 1) Path problems - can't be the issue since all paths point to >>>> globals (^) >>>> 2) Permissions - re-permed over and over... no change >>>> 3) Some top-secret, undocumented pre-parse behavior - maybe. >>>> 4) ????????? >>>> I'm going into day 2 of this and it's driving me mad. Any fresh >>>> ideas would be greatly appreciated. >>>> Thanks, >>>> -Dan >> >> ------------------------------------------------------------- >> 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/ > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ "Dan Strong"

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:

Spiders (1998) WebCat2 - [format thousands] (1997) CyberSource (2005) Mac Typhoon, WebCatalog Plugins Work Better With FireSite Now (1998) Ampersand (1997) Help! WebCat2 bug (1997) WebDNA still will not start on restart (2002) Size limit for tmpl editor ? (1997) [SearchString] problem with [search] context (1997) RE: Emailer Set Up (1997) URL for Discussion Archive (1997) Mozilla/4. and Browser Info.txt (1997) Searching multiple Databases (1997) [isfolder] and [filename] (1997) Special characters in field names (1998) WebDNA tags in WebMerchant email templates ... (1997) Bad File: DeleteCommand.html (1998) URGENT! Locked DB's (2001) View Source from cache (1997) [writefile] (1997)