Custom errormessages.db to intercept directory names
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45618
interpreted = N
texte = I want to edit the TemplateNotFound line in errormessages.db so that I canassign a nonexistant URL, intercept the error when a request comes in, parsethe parameters of the URL and redirect the user to an appropriate location.The problem is, I want to do this with directories and not files.If I specify a document that's not there, WebDNA gives its error message.http://domain.com/imaginary.html returns:Error: template 'server:WebTen v3.0:WebSites:domain.com:imaginary.html' notfoundBut if I try to do it with a fake directory (which is what I want to do)Apache kicks out its own 404 messagehttp://domain.com/imaginary returns:File Not FoundThe requested URL /imaginary was not found on this server.How can I have WebDNA handle these requests as well? I'm thinking it wouldbe done on the Apache side of things, with a change to httpd.conf.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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:
I want to edit the TemplateNotFound line in errormessages.db so that I canassign a nonexistant URL, intercept the error when a request comes in, parsethe parameters of the URL and redirect the user to an appropriate location.The problem is, I want to do this with directories and not files.If I specify a document that's not there, WebDNA gives its error message.http://domain.com/imaginary.html returns:Error: template 'server:WebTen v3.0:WebSites:domain.com:imaginary.html' notfoundBut if I try to do it with a fake directory (which is what I want to do)Apache kicks out its own 404 messagehttp://domain.com/imaginary returns:File Not FoundThe requested URL /imaginary was not found on this server.How can I have WebDNA handle these requests as well? I'm thinking it wouldbe done on the Apache side of things, with a change to httpd.conf.Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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/
Rob Marquardt
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:
Deleting with contexts (2001)
WriteFile and returns... (2000)
Dynamic Pop up menu? (1997)
founditem align (1998)
showif with math? (2000)
Lookup command (1998)
More on the email templates (1997)
Formatting dates stored in db (2003)
Using & in subject line (2003)
Changes to the List (1997)
Beginning Documentation (2002)
[OrderFile] error (help) (1999)
Showing unopened cart (1997)
Size Limitation through a POST via SSL? (2005)
Accepting credit cards (1997)
More on the email templates (1997)
WebMerchant Integration with Verifone's vPOS (1998)
[founditems] & radiobuttons - CONCLUSION (2002)
WebCatalog Mac and cgi-bin (WebSTAR 2.0) (1997)
[WebDNA] [lookup] fails when using [url] to wrap a value for potential "&" char? (2009)