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:
WebCat2: multiple currency support (1997)
Separate SSL Server (1997)
[WebDNA] Pretty URLS (2011)
Trouble with formula.db (1997)
Shownext from POST (2000)
Sort Order on a page search (1997)
WebCatalog for Postcards ? (1997)
creating a ShipCosts database (1997)
Multiple catalog databases and showcart (1997)
Bug or syntax error on my part? (1997)
[WebDNA] Emailer Issue *SOLVED* (2009)
webDNA on centos (2008)
[CART] (1997)
WebCat2b13 Command Reference Doc error (1997)
[Listfiles] vs Netfinder (1997)
Undeclared variables (2004)
New [If] command question (2000)
Small problem (2001)
passwords (2000)
Same DB Same Time (2004)