Re: 404 error page issue
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 63734
interpreted = N
texte = Make sure you have a page called error.html (or whatever you want, just be sure to change it in the code below) with the [returnraw] code in it. Then put this code in your errormessages.db TemplateNotFound value *no line breaks at all, just one continuous line*[showif [fileinfo file=error.html][exists][/fileinfo]=T] [redirect error.html][/showif] [hideif [fileinfo file=error.html][exists][/fileinfo]=T]Error: template '[param1]' not found[/hideif]Obviously back errormessages.db up and test this, but I have a variation of it working now FWIW. The only issue that may or may not pop up would be the location of error.html, so if for some reason webDNA doesn't find it, play with the path in the redirect.-DanOn Mon, 2 Jan 2006 20:11:08 +0100 "paul"
wrote:> Hi Dan> > I did this but it still gives the 200 error not a true 404 becuase webcat> uses the template not found and then send it on to thsi page like a redirect> > what do I put in the webcat error.db under TemplateNotFound as thsi is the> cause of the problem> > Thanks> Paul> ----- Original Message ----- >From: "Dan Strong" > To: "WebDNA Talk" > Sent: Monday, January 02, 2006 6:20 PM> Subject: Re: 404 error page issue> > >> You put this in your error page. I assumed from your original post that> you had a custom error>> page.>> -Dan>>>>>> On Mon, 2 Jan 2006 08:13:43 +0100>> "paul" wrote:>> > Hi Dan>> >>> > Were do you put this?>> >>> > In the errors .db the first listing is TemplateNotFound and where thsi> is>> > sent seems to be the issue>> >>> > THanks>> > Paul>> >>> >>> > ----- Original Message ----- >> >From: "Dan Strong" >> > To: "WebDNA Talk" >> > Sent: Monday, January 02, 2006 12:51 AM>> > Subject: Re: 404 error page issue>> >>> >>> >> You have to have line breaks after each line, exactly as below.>> >>>> >> [ReturnRaw]HTTP/1.1 404 Object Not Found>> >> Status: 404>> >> Server: Microsoft-IIS/5.0>> >> Connection: Close>> >> MIME-Version: 1.0>> >> Content-Type: text/html>> >>>> >> Page Not Found>> >> [/ReturnRaw]>> >>>> >>>> >>>> >>>> >> On Sun, 1 Jan 2006 23:51:05 +0100>> >> "paul" wrote:>> >> > Hi Dan>> >> >>> >> > So do I use something like, what delimiters do I use to make thsi> work,>> > thsi>> >> > actually returns a 200 staus which is what is causing the issue>> >> >>> >> > TemplateNotFound [ReturnRaw]HTTP/1.1 404 Object Not Found Status: 404>> >> > Server: Microsoft-IIS/5.0 Connection: Close MIME-Version: 1.0>> > Content-Type:>> >> > text/html Page Not Found [/ReturnRaw]>> >> >>> >> > THanks>> >> > Paul>> >> >>> >> >>> >> > ----- Original Message ----- >> >> >From: "Dan Strong" >> >> > To: "WebDNA Talk" >> >> > Sent: Sunday, January 01, 2006 9:02 PM>> >> > Subject: Re: 404 error page issue>> >> >>> >> >>> >> >> http://web-sniffer.net/>> >> >>>> >> >> Use this page to check your headers and get the specific server type> to>> >> > put into the appropriate>> >> >> place in the code below (I left mine in as an example). It choked> for>> > me>> >> > until I gave it the>> >> >> *exact* server-type it was expecting.>> >> >>>> >> >> [ReturnRaw]HTTP/1.1 404 Object Not Found>> >> >> Status: 404>> >> >> Server: Apache/1.3.19 (iTools/MacOSX) mod_ssl/2.8.1 OpenSSL/0.9.5a>> >> > PHP/4.0.4pl1 mod_per>> >> >> Connection: Close>> >> >> MIME-Version: 1.0>> >> >> Content-Type: text/html>> >> >>>> >> >> Your Error Page text, etc. goes here.>> >> >> [/ReturnRaw]>> >> >>>> >> >> HTH>> >> >> -Dan>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >> On Sat, 31 Dec 2005 23:10:27 +0100>> >> >> "paul" wrote:>> >> >> > I need to verify my site with google but>> >> >> >>> >> >> > We've detected that your 404 (file not found) error page returns a>> >> > status of>> >> >> > 200 (OK) in the header.>> >> >> >>> >> >> > THsi is because the template not found option gives the 404 as a>> > result>> >> > not>> >> >> > a true not found>> >> >> >>> >> >> > How do I change this so I get a real 404 error?>> >> >> >>> >> >> > Thanks>> >> >> > Paul>> >> >> >>> >> >> >>> >> >> >>> >> >> > ------------------------------------------------------------->> >> >> > 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/>> >> >>>> >> >>> >> >>> >> >>> >> > ------------------------------------------------------------->> >> > 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/>> >>>> >>> >>> >>> > ------------------------------------------------------------->> > 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/>>> > > > -------------------------------------------------------------> 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/
Associated Messages, from the most recent to the oldest:
Make sure you have a page called error.html (or whatever you want, just be sure to change it in the code below) with the [returnraw] code in it. Then put this code in your errormessages.db TemplateNotFound value *no line breaks at all, just one continuous line*[showif [fileinfo file=error.html][exists][/fileinfo]=T] [redirect error.html][/showif] [hideif [fileinfo file=error.html][exists][/fileinfo]=T]Error: template '[param1]' not found[/hideif]Obviously back errormessages.db up and test this, but I have a variation of it working now FWIW. The only issue that may or may not pop up would be the location of error.html, so if for some reason webDNA doesn't find it, play with the path in the redirect.-DanOn Mon, 2 Jan 2006 20:11:08 +0100 "paul" wrote:> Hi Dan> > I did this but it still gives the 200 error not a true 404 becuase webcat> uses the template not found and then send it on to thsi page like a redirect> > what do I put in the webcat error.db under TemplateNotFound as thsi is the> cause of the problem> > Thanks> Paul> ----- Original Message ----- >From: "Dan Strong" > To: "WebDNA Talk" > Sent: Monday, January 02, 2006 6:20 PM> Subject: Re: 404 error page issue> > >> You put this in your error page. I assumed from your original post that> you had a custom error>> page.>> -Dan>>>>>> On Mon, 2 Jan 2006 08:13:43 +0100>> "paul" wrote:>> > Hi Dan>> >>> > Were do you put this?>> >>> > In the errors .db the first listing is TemplateNotFound and where thsi> is>> > sent seems to be the issue>> >>> > THanks>> > Paul>> >>> >>> > ----- Original Message ----- >> >From: "Dan Strong" >> > To: "WebDNA Talk" >> > Sent: Monday, January 02, 2006 12:51 AM>> > Subject: Re: 404 error page issue>> >>> >>> >> You have to have line breaks after each line, exactly as below.>> >>>> >> [returnraw]HTTP/1.1 404 Object Not Found>> >> Status: 404>> >> Server: Microsoft-IIS/5.0>> >> Connection: Close>> >> MIME-Version: 1.0>> >> Content-Type: text/html>> >>>> >> Page Not Found>> >> [/ReturnRaw]>> >>>> >>>> >>>> >>>> >> On Sun, 1 Jan 2006 23:51:05 +0100>> >> "paul" wrote:>> >> > Hi Dan>> >> >>> >> > So do I use something like, what delimiters do I use to make thsi> work,>> > thsi>> >> > actually returns a 200 staus which is what is causing the issue>> >> >>> >> > TemplateNotFound [returnraw]HTTP/1.1 404 Object Not Found Status: 404>> >> > Server: Microsoft-IIS/5.0 Connection: Close MIME-Version: 1.0>> > Content-Type:>> >> > text/html Page Not Found [/ReturnRaw]>> >> >>> >> > THanks>> >> > Paul>> >> >>> >> >>> >> > ----- Original Message ----- >> >> >From: "Dan Strong" >> >> > To: "WebDNA Talk" >> >> > Sent: Sunday, January 01, 2006 9:02 PM>> >> > Subject: Re: 404 error page issue>> >> >>> >> >>> >> >> http://web-sniffer.net/>> >> >>>> >> >> Use this page to check your headers and get the specific server type> to>> >> > put into the appropriate>> >> >> place in the code below (I left mine in as an example). It choked> for>> > me>> >> > until I gave it the>> >> >> *exact* server-type it was expecting.>> >> >>>> >> >> [returnraw]HTTP/1.1 404 Object Not Found>> >> >> Status: 404>> >> >> Server: Apache/1.3.19 (iTools/MacOSX) mod_ssl/2.8.1 OpenSSL/0.9.5a>> >> > PHP/4.0.4pl1 mod_per>> >> >> Connection: Close>> >> >> MIME-Version: 1.0>> >> >> Content-Type: text/html>> >> >>>> >> >> Your Error Page text, etc. goes here.>> >> >> [/ReturnRaw]>> >> >>>> >> >> HTH>> >> >> -Dan>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >> On Sat, 31 Dec 2005 23:10:27 +0100>> >> >> "paul" wrote:>> >> >> > I need to verify my site with google but>> >> >> >>> >> >> > We've detected that your 404 (file not found) error page returns a>> >> > status of>> >> >> > 200 (OK) in the header.>> >> >> >>> >> >> > THsi is because the template not found option gives the 404 as a>> > result>> >> > not>> >> >> > a true not found>> >> >> >>> >> >> > How do I change this so I get a real 404 error?>> >> >> >>> >> >> > Thanks>> >> >> > Paul>> >> >> >>> >> >> >>> >> >> >>> >> >> > ------------------------------------------------------------->> >> >> > 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/>> >> >>>> >> >>> >> >>> >> >>> >> > ------------------------------------------------------------->> >> > 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/>> >>>> >>> >>> >>> > ------------------------------------------------------------->> > 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/>>> > > > -------------------------------------------------------------> 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/
"Dan Strong"
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:
Search problem C++ (2000)
the dreaded unitShipCost (2003)
Chown www:wheel Almost There WebCat 5 on itools 7 (2003)
TCPConnect (2002)
[OT] ssh user@domain.com (2004)
problem writing to db properly (2000)
HELP WITH DATES (1997)
[WebDNA] math and blank /no value (2014)
[WebDNA] ORACLE STORE PROCEDURE out parameter problem (2009)
[WriteFile] problems (1997)
New Weird Behavior (bug report) (2000)
WebDNA Freelancer Needed (2002)
GMT Date/Time (2000)
Protect (1997)
[OT] Need help writing a proposal (2004)
autosensing lanague selection (1997)
one item in several different categories? (2000)
Image maps/Webcat (1997)
Parsing args without ? (2003)
EIMS Problems (1997)