[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:

shortening the cart (1998) Problem (1997) [referrer] tag (1997) SQLResult chokes on null values? (2006) ErrorLog with Linux? (2000) RE: Problems with shopping cart (1997) DB approach question (2000) REPLACE & MAX/STARTAT parameters doesn't work? (2000) form data submission gets truncated (1997) Date subtraction (2002) sorting and summarizing (1998) serial number generation (1997) Search with Special Chars (1997) Hello??? (1997) HELP WITH DATES (1997) URGENT - CPU usage OSXS (2001) Database Options (1997) Searching a field and returning the highest value (1997) problems with 2 tags (1997) Out of the woodwork (2007)