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. -Dan On 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:

    
  1. Re: 404 error page issue ( "Dan Strong" 2006)
  2. Re: 404 error page issue ( Jesse Proudman 2006)
  3. Re: 404 error page issue ( "Dan Strong" 2006)
  4. Re: 404 error page issue ( "paul" 2006)
  5. Re: 404 error page issue ( "Dan Strong" 2006)
  6. Re: 404 error page issue ( "paul" 2006)
  7. Re: 404 error page issue ( "Dan Strong" 2006)
  8. Re: 404 error page issue ( "paul" 2006)
  9. Re: 404 error page issue ( "Dan Strong" 2006)
  10. Re: 404 error page issue ( "paul" 2005)
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. -Dan On 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:

Credit Card processing (1998) shownext problems (1998) Multiple Pulldowns (1997) [format xs] freeze (1997) [isfile] ? (1997) Help name our technology! (1997) Running _every_ page through WebCat ? (1997) encrypt/decrypt (2001) [SearchString] (1998) displaying 12 results 4 by 3 (2000) rn doesn't work on date fields (1998) WebCat name recognition (1998) [ot] g5 xserve drives (2004) flushdatabases (1997) Unanswered trigger questions ... (2003) Thanks Grant (1997) WebCat2: Items xx to xx shown, etc. (1997) Thanks ! (1997) New Command prefs ... (1997) Re:listfiles-looking for slick solution (1997)