Re: [WebDNA] Error: template...

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102272
interpreted = N
texte = Psi Prime, Matthew A Perosi wrote: > Anyone know how to get rid of the default error message created when a > page is not found? > > When the WebCatalogEngine is running I always get > "Error: template '/www/docs/xxxx.html' not found" > or > "Error: template '/www/docs/xxxx.tpl' not found" > which of course returns a HTTP 200 status, > but I need a 404 status instead. > > What's also strange is that I do set the 404 on all my sites to redirect > to an error.html page, but most of the time that Apache directive is > ignored. > > Linux > Apache 2.0.52 > WebDNA 6 Mathew, you can edit the errormessages.db to point *WebDNA notfounds* to your custom 404 page using [redirect..].. (or any WebDNA logic for that matter). I have seen entire sites based off of this hack. ;-) HTH, Donovan -- Donovan D. Brooke PH: 1 (608) 770-3822 ------------------------------------------------ VP WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Error: template... (Donovan Brooke 2009)
  2. Re: [WebDNA] Error: template... (Donovan Brooke 2009)
  3. Re: [WebDNA] Error: template... (Toby Cox 2009)
  4. Re: [WebDNA] Error: template... (Paul Willis 2009)
  5. Re: [WebDNA] Error: template... (christophe.billiottet@webdna.us 2009)
  6. [WebDNA] Error: template... ("Psi Prime, Matthew A Perosi " 2009)
Psi Prime, Matthew A Perosi wrote: > Anyone know how to get rid of the default error message created when a > page is not found? > > When the WebCatalogEngine is running I always get > "Error: template '/www/docs/xxxx.html' not found" > or > "Error: template '/www/docs/xxxx.tpl' not found" > which of course returns a HTTP 200 status, > but I need a 404 status instead. > > What's also strange is that I do set the 404 on all my sites to redirect > to an error.html page, but most of the time that Apache directive is > ignored. > > Linux > Apache 2.0.52 > WebDNA 6 Mathew, you can edit the errormessages.db to point *WebDNA notfounds* to your custom 404 page using [redirect..].. (or any WebDNA logic for that matter). I have seen entire sites based off of this hack. ;-) HTH, Donovan -- Donovan D. Brooke PH: 1 (608) 770-3822 ------------------------------------------------ VP WebDNA Software Corporation 16192 Coastal Highway Lewes, DE 19958 Donovan Brooke

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:

Detecting/limiting connections in the developer edition ... (2004) Templates on Unix & CGI on Mac? (1997) [WebDNA] Poll: Discussion Forum (2009) Limiting user access to .tmpl files (1997) [searchString] (1997) Truncated value after space - refresh my memory.... (1997) [WebDNA] [OT] WebDNA Wiki - need grammar check / suggestions (2009) problems with 2 tags (1997) Re:2nd WebCatalog2 Feature Request (1996) server side includes & webcatalog (2000) Searching/sorting dates (1997) E-mail loop ! (1997) SQL speed issues (2001) Force a search at the default.tmpl page? (1997) [WebDNA] Rewrite url (2013) Nesting format tags (1997) ADMIN ACCESS (1999) CAPTCHA system in webDNA (2005) Advice on MacOS & TCP Connects (2000) MacAuthorize and WebCatalog Questions (2000)