Re: I want a 404
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62094
interpreted = N
texte = That won't work very well in the long run, be prepared for problem with= several robots.Instead, make an [INCLUDE] in your errormessages.db like[HIDEIF [FileInfo /errors/404.html][Exists][/FileInfo]=3DT][INCLUDE file=3D^/errors/ 404.html][/HIDEIF][SHOWIF [FileInfo /errors/404.html][Exists][/FileInfo]=3DT][INCLUDE file=3D/errors/404.html][/SHOWIF]This will check for a site specific 404.html page, and if it is not present= it will serve a global 404.html page (remove linebreaks before adding to= your errormessages.db).Then make your 404.html pages something like this[ReturnRaw]HTTP/1.1 404 Object Not FoundStatus: 404 Server: YourSpiffyServerName Content-Type: text/html Your html code goes here[/ReturnRaw]>Thanks for all suggestions. I put a redirect to a non-existant >directory in the errormessages.db>>Works perfect so far. Thanks to one of my WebDNA hosting clients for >the winning tip!>>Gregg>-->Gregg Luhring
>>On May 30, 2005, at 4:30 PM, Brian B. Burton wrote:>>> in your errormessages.bd reference an include file>>>> in the included file use the returnraw context to return an actual 404 >> status code error message.>>>> Without extensive testing, i have no idea what browsers will/won't >> show any actual message the follows the 404 status header.>>>> Brian B. Burton>> Department of Redundancy Department>> --------------------------------------------------------------->> Specializing in website design and development to make your customers >> exclaim:>> "Out of all the websites I visit, yours is the easiest to use!">>>>>>>>>>>>>> On May 27, 2005, at 12:50 PM, Charles Kline wrote:>>>>>> On May 27, 2005, at 9:49 AM, Gregg Luhring wrote:>>>>>>> When I get the error message, "Error: template '[param1]' not found" >>>> I would rather get a 404 from the server instead of the message from >>>> the errormessages.db>>>> Can someone help me?>>>> Gregg>>>> -->>>>>> Edit the ErrorMessage.db in the WebCatalogEngine directory.>>> TemplateNotFound Error: template '[param1]' not found>>> to whatever output you want instead of the Error: part. Can even be >>> HTML as you will see from some of the other errors in there>>>>>>>>>> ------------------------------------------------------------->> 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/-- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se-------------------------------------------------------------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:
That won't work very well in the long run, be prepared for problem with= several robots.Instead, make an [include] in your errormessages.db like[HIDEIF [FileInfo /errors/404.html][Exists][/FileInfo]=3DT][INCLUDE file=3D^/errors/ 404.html][/HIDEIF][SHOWIF [FileInfo /errors/404.html][Exists][/FileInfo]=3DT][INCLUDE file=3D/errors/404.html][/SHOWIF]This will check for a site specific 404.html page, and if it is not present= it will serve a global 404.html page (remove linebreaks before adding to= your errormessages.db).Then make your 404.html pages something like this[returnraw]HTTP/1.1 404 Object Not FoundStatus: 404 Server: YourSpiffyServerName Content-Type: text/html Your html code goes here[/ReturnRaw]>Thanks for all suggestions. I put a redirect to a non-existant >directory in the errormessages.db>>Works perfect so far. Thanks to one of my WebDNA hosting clients for >the winning tip!>>Gregg>-->Gregg Luhring >>On May 30, 2005, at 4:30 PM, Brian B. Burton wrote:>>> in your errormessages.bd reference an include file>>>> in the included file use the returnraw context to return an actual 404 >> status code error message.>>>> Without extensive testing, i have no idea what browsers will/won't >> show any actual message the follows the 404 status header.>>>> Brian B. Burton>> Department of Redundancy Department>> --------------------------------------------------------------->> Specializing in website design and development to make your customers >> exclaim:>> "Out of all the websites I visit, yours is the easiest to use!">>>>>>>>>>>>>> On May 27, 2005, at 12:50 PM, Charles Kline wrote:>>>>>> On May 27, 2005, at 9:49 AM, Gregg Luhring wrote:>>>>>>> When I get the error message, "Error: template '[param1]' not found" >>>> I would rather get a 404 from the server instead of the message from >>>> the errormessages.db>>>> Can someone help me?>>>> Gregg>>>> -->>>>>> Edit the ErrorMessage.db in the WebCatalogEngine directory.>>> TemplateNotFound Error: template '[param1]' not found>>> to whatever output you want instead of the Error: part. Can even be >>> HTML as you will see from some of the other errors in there>>>>>>>>>> ------------------------------------------------------------->> 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/-- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se-------------------------------------------------------------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/
Christer Olsson
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:
Shipping Help! (1998)
Re:[off] Promotions Co? (1997)
[WebDNA] Google Maps (2019)
Quit revisited (1997)
TCP Connect code for SMTP transaction (2004)
There's a bug in the math context ... (1997)
[WebDNA] Installing with MAMP (2015)
SIMS & WebCat .... Alias Folder (2002)
[WebDNA] Emailer & SMTP (2009)
Two submit buttons ? (1997)
Long/Lat (2002)
[WebDNA] TcpConnect Help (2011)
Is this possible, WebCat2.0 and checkboxes (1997)
WebTen and WebCat (1997)
Using Plug-In while running 1.6.1 (1997)
can webcat create directories on NT? (1997)
Set Header Context (1998)
Problems adding stuff to the shopping cart. (1997)
[WebDNA] fastcgi 7+ & [cart]? (2010)
Format question WC Mac f3 (1997)