[WebDNA] 404 Problem

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112010
interpreted = N
texte = --Apple-Mail=_FFED2496-794A-434C-92A8-256C837CED2B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi All I am hoping someone can help with a problem that I have been wrestling = with for some time off and on and it=E2=80=99s driving me nuts and sorry = for the long email. I had a look through the archive and I know other = people have had an issue but their solutions don=E2=80=99t seem to be = helping me. I am running WebDNA 8.0.2 on a OSX Yosemite Server and I have been doing = some serious re-coding of my main site to get rid of variables in the = urls and tidying up a few historical issues. All fine except that I = cannot get a proper 404 code to be returned and there is going to be a = lot for a while until the old page links disappear. The site is parked for the moment at http://new.forestlogcabins.com and = uses my CMS which depends on the errormessages.db catching missing pages = and reading db=E2=80=99s.=20 So if you got to http://new.forestlogcabins.com/Custom-Designs.html for = example all is fine but try = http://new.forestlogcabins.com/Custooooom-Designs.html and you get my = error.html page but with a 302. The line that does that is=E2=80=A6 TemplateNotFound[showif [fileinfo = file=3Dinterpret.inc][exists][/fileinfo]=3DT][text]show_error=3DF[/text][t= ext]hide_error_redirect=3DF[/text][include = file=3Dinterpret.inc][/showif][hideif [hide_error_redirect]=3DT][showif = [fileinfo file=3Derror.html][exists][/fileinfo]=3DT][redirect = error.html][/showif][/hideif][hideif [show_error]=3DF]Error: template = '[param1]' not found[/hideif] Basically no page so look for interpret.inc and if no db stuff exists = then look for error.html and if all else fails kick out the usual WebDNA = error - straightforward enough and works across many sites just fine but = none of them will kick out a proper 404. Incidentally the error.html that it looks for is actually a virtual page = within the cms, this may be the issue. I have looked back the archives and they have suggested either a = slightly different line in the error db to include=E2=80=A6 [ReturnRaw]HTTP/1.1 404 Object Not Found Status: 404 =20 Server: YourSpiffyServerName =20 Content-Type: text/html =20 Your html code goes here[/ReturnRaw] ...but that hasn't worked for me assuming I'm doing it right. I have = also tried adding this kind of code to the actual error.html page and = each time all I get is a blank page. I'm stuck!!! Any help or pointers much appreciated. Cheers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Forest Products (Leisure) Ltd Tel +44 1330 860505 Mob +44 7778 007607 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.forestlogcabins.com Email: steve@forestlogcabins.com Skype: s.craig - iChat: steve.craig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Standard terms and conditions available here = http://forestlogcabins.com/Terms.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Forest Products (Leisure) Ltd Tel +44 1330 860505 Mob +44 7778 007607 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.forestlogcabins.com Email: steve@forestlogcabins.com Skype: s.craig - iChat: steve.craig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Standard terms and conditions available here = http://forestlogcabins.com/Terms.html = --Apple-Mail=_FFED2496-794A-434C-92A8-256C837CED2B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi All

I am hoping someone can = help with a problem that I have been wrestling with for some time off = and on and it=E2=80=99s driving me nuts and sorry for the long email. I = had a look through the archive and I know other people have had an issue = but their solutions don=E2=80=99t seem to be helping me.
I am running WebDNA 8.0.2 on a OSX Yosemite Server and I = have been doing some serious re-coding of my main site to get rid of = variables in the urls and tidying up a few historical issues. All fine = except that I cannot get a proper 404 code to be returned and there is = going to be a lot for a while until the old page links disappear.

The site is parked for the moment at http://new.forestlogcabins.com and uses my CMS which = depends on the errormessages.db catching missing pages and reading = db=E2=80=99s.

So if you got to http://new.forestlogcabins.com/Custom-Designs.html for = example all is fine but try http://new.forestlogcabins.com/Custooooom-Designs.html = and you get my error.html page but with a 302.

The line that does that is=E2=80=A6

TemplateNotFound[showif [fileinfo = file=3Dinterpret.inc][exists][/fileinfo]=3DT][text]show_error=3DF[/text][t= ext]hide_error_redirect=3DF[/text][include = file=3Dinterpret.inc][/showif][hideif [hide_error_redirect]=3DT][showif = [fileinfo file=3Derror.html][exists][/fileinfo]=3DT][redirect = error.html][/showif][/hideif][hideif [show_error]=3DF]Error: template = '[param1]' not found[/hideif]

Basically no = page so look for interpret.inc and if no db stuff exists then look for = error.html and if all else fails kick out the usual WebDNA error - = straightforward enough and works across many sites just fine but none of = them will kick out a proper 404.

Incidentally= the error.html that it looks for is actually a virtual page within the = cms, this may be the issue.

I have looked = back the archives and they have suggested either a slightly different = line in the error db to include=E2=80=A6

[ReturnRaw]HTTP/1.1 404 Object Not Found
Status: = 404  
Server: YourSpiffyServerName  
Content-Type: text/html  

Your html code goes here[/ReturnRaw]

...but that hasn't worked for me assuming I'm doing it right. = I have also tried adding this kind of code to the actual error.html page = and each time all I get is a blank page.

I'm = stuck!!!

Any help or pointers much = appreciated.

Cheers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Forest Products (Leisure) Ltd
Tel = +44 1330 860505 Mob +44 7778 007607
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.forestlogcabins.com
Email: = steve@forestlogcabins.com
Skype: s.craig - iChat: = steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Standard terms and conditions available here = http://forestlogcabins.com/Terms.html





=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Forest Products (Leisure) Ltd
Tel +44 1330 860505 Mob +44 7778 007607
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.forestlogcabins.com
Email: = steve@forestlogcabins.com
Skype: s.craig - iChat: = steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Standard terms and = conditions available here http://forestlogcabins.com/Terms.html





= --Apple-Mail=_FFED2496-794A-434C-92A8-256C837CED2B-- Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] 404 Problem (Steve Craig 2015)
--Apple-Mail=_FFED2496-794A-434C-92A8-256C837CED2B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi All I am hoping someone can help with a problem that I have been wrestling = with for some time off and on and it=E2=80=99s driving me nuts and sorry = for the long email. I had a look through the archive and I know other = people have had an issue but their solutions don=E2=80=99t seem to be = helping me. I am running WebDNA 8.0.2 on a OSX Yosemite Server and I have been doing = some serious re-coding of my main site to get rid of variables in the = urls and tidying up a few historical issues. All fine except that I = cannot get a proper 404 code to be returned and there is going to be a = lot for a while until the old page links disappear. The site is parked for the moment at http://new.forestlogcabins.com and = uses my CMS which depends on the errormessages.db catching missing pages = and reading db=E2=80=99s.=20 So if you got to http://new.forestlogcabins.com/Custom-Designs.html for = example all is fine but try = http://new.forestlogcabins.com/Custooooom-Designs.html and you get my = error.html page but with a 302. The line that does that is=E2=80=A6 TemplateNotFound[showif [fileinfo = file=3Dinterpret.inc][exists][/fileinfo]=3DT][text]show_error=3DF[/text][t= ext]hide_error_redirect=3DF[/text][include = file=3Dinterpret.inc][/showif][hideif [hide_error_redirect]=3DT][showif = [fileinfo file=3Derror.html][exists][/fileinfo]=3DT][redirect = error.html][/showif][/hideif][hideif [show_error]=3DF]Error: template = '[param1]' not found[/hideif] Basically no page so look for interpret.inc and if no db stuff exists = then look for error.html and if all else fails kick out the usual WebDNA = error - straightforward enough and works across many sites just fine but = none of them will kick out a proper 404. Incidentally the error.html that it looks for is actually a virtual page = within the cms, this may be the issue. I have looked back the archives and they have suggested either a = slightly different line in the error db to include=E2=80=A6 [returnraw]HTTP/1.1 404 Object Not Found Status: 404 =20 Server: YourSpiffyServerName =20 Content-Type: text/html =20 Your html code goes here[/ReturnRaw] ...but that hasn't worked for me assuming I'm doing it right. I have = also tried adding this kind of code to the actual error.html page and = each time all I get is a blank page. I'm stuck!!! Any help or pointers much appreciated. Cheers =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Forest Products (Leisure) Ltd Tel +44 1330 860505 Mob +44 7778 007607 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.forestlogcabins.com Email: steve@forestlogcabins.com Skype: s.craig - iChat: steve.craig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Standard terms and conditions available here = http://forestlogcabins.com/Terms.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Steve Craig - Forest Products (Leisure) Ltd Tel +44 1330 860505 Mob +44 7778 007607 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D http://www.forestlogcabins.com Email: steve@forestlogcabins.com Skype: s.craig - iChat: steve.craig =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Standard terms and conditions available here = http://forestlogcabins.com/Terms.html = --Apple-Mail=_FFED2496-794A-434C-92A8-256C837CED2B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi All

I am hoping someone can = help with a problem that I have been wrestling with for some time off = and on and it=E2=80=99s driving me nuts and sorry for the long email. I = had a look through the archive and I know other people have had an issue = but their solutions don=E2=80=99t seem to be helping me.
I am running WebDNA 8.0.2 on a OSX Yosemite Server and I = have been doing some serious re-coding of my main site to get rid of = variables in the urls and tidying up a few historical issues. All fine = except that I cannot get a proper 404 code to be returned and there is = going to be a lot for a while until the old page links disappear.

The site is parked for the moment at http://new.forestlogcabins.com and uses my CMS which = depends on the errormessages.db catching missing pages and reading = db=E2=80=99s.

So if you got to http://new.forestlogcabins.com/Custom-Designs.html for = example all is fine but try http://new.forestlogcabins.com/Custooooom-Designs.html = and you get my error.html page but with a 302.

The line that does that is=E2=80=A6

TemplateNotFound[showif [fileinfo = file=3Dinterpret.inc][exists][/fileinfo]=3DT][text]show_error=3DF[/text][t= ext]hide_error_redirect=3DF[/text][include = file=3Dinterpret.inc][/showif][hideif [hide_error_redirect]=3DT][showif = [fileinfo file=3Derror.html][exists][/fileinfo]=3DT][redirect = error.html][/showif][/hideif][hideif [show_error]=3DF]Error: template = '[param1]' not found[/hideif]

Basically no = page so look for interpret.inc and if no db stuff exists then look for = error.html and if all else fails kick out the usual WebDNA error - = straightforward enough and works across many sites just fine but none of = them will kick out a proper 404.

Incidentally= the error.html that it looks for is actually a virtual page within the = cms, this may be the issue.

I have looked = back the archives and they have suggested either a slightly different = line in the error db to include=E2=80=A6

[returnraw]HTTP/1.1 404 Object Not Found
Status: = 404  
Server: YourSpiffyServerName  
Content-Type: text/html  

Your html code goes here[/ReturnRaw]

...but that hasn't worked for me assuming I'm doing it right. = I have also tried adding this kind of code to the actual error.html page = and each time all I get is a blank page.

I'm = stuck!!!

Any help or pointers much = appreciated.

Cheers
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Forest Products (Leisure) Ltd
Tel = +44 1330 860505 Mob +44 7778 007607
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.forestlogcabins.com
Email: = steve@forestlogcabins.com
Skype: s.craig - iChat: = steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Standard terms and conditions available here = http://forestlogcabins.com/Terms.html





=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Steve Craig - Forest Products (Leisure) Ltd
Tel +44 1330 860505 Mob +44 7778 007607
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
http://www.forestlogcabins.com
Email: = steve@forestlogcabins.com
Skype: s.craig - iChat: = steve.craig
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Standard terms and = conditions available here http://forestlogcabins.com/Terms.html





= --Apple-Mail=_FFED2496-794A-434C-92A8-256C837CED2B-- Steve Craig

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:

Date search and sendmail (1997) Re2: frames & carts (1997) Generating Report Totals (1997) WebCat2final1 crashes (1997) RE: Credit card processing - UK (1997) [isfile] ? (1997) Some Advise needed (1997) apparently to problem isolated (1997) Merchant and WebCat 3.0 (1998) WebCat2 - storing unformatted date data? (1997) Great product and great job ! (1997) merchant accts. (1997) International Orders (1998) [Sum] function? (1997) WebCatalog2 Feature Feedback (1996) [Semi-OT] Eaaaaaasy OSX FTP (2003) WebCat2b13 Command Reference Doc error (1997) [protect] on NT? (1997) [WebDNA] Search question (2012) searchable list archive (1997)