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:
First postarg not taking in $Commands (1997)
[searchString] (1997)
Shopping problems with 2.1b3 acgi (1997)
Problems with shopping cart (1997)
OT: Where to turn (2003)
3rd party processor question (2003)
Max connections exceeded clarification please (2002)
WebCatalog 4.0 Users that want to talk to the Media.... (2000)
Country & Ship-to address & other fields ? (1997)
WebCat2 several catalogs? (1997)
Custom Shipping Charges (1997)
Running _every_ page through WebCat ? (1997)
Search Combining Problem (2004)
Bug Report, maybe (1997)
Major bug report on rootbeer (1997)
bypassing typo's (1998)
Not reading code (1997)
Custom WebCat Prefs ... (1997)
RE: type 2 errors with ssl server (1997)
math a various prices (1997)