=20 =20---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listI changed the TemplateNotFound entry =in the ErrorMessages.db file to this:
[showif [url][param1][/url]^[url].inc[/url]]Error: include file: '[param1]' not found...[/showif][hideif [url][param1][/url]^[url].inc[/url]][ReturnRaw]HTTP/1.2 404 [showif [fileinfo /error.html][exists][/fileinfo]=3DT][include=file=3D/error.html][/showif][unurl]%0D%0A%0D%0A[/unurl][/ReturnRaw][/hidei=f]
I'm running the server version of WebDNA and had to change that for the MASTER and all SANDBOXES.
-Matt
On 9/23/2014 6:01 AM, Steve Craig wrote:
Hi All
I'm sure this has been spoken about before but I can't seem to find an answer. My sites use a CMS and tend to be based on using the page not found triggering the ErrorMessages.db to look up a site database etc.
When a page is not in my database I put up a standard 404 looking page but it still sends out a 200 response and I'm trying to find out how I can send a genuine 404 response.
Can anyone tell me what I would need to add to get this to work, is it possible?
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=3DSteve Craig - Asylum InteractiveTel +44 1330 860550=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEmail: steve@asylumweb.comSkype: 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
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list. To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.us Bug Reporting: support@webdna.us
--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatormatt@psiprime.comPsi Prime, Inc.323 Union Blvd.Totowa, NJ 07512Direct: 888.872.0274Fax: 888.488.5924http://www.perosi.com.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
|
=20 =20---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listI changed the TemplateNotFound entry =in the ErrorMessages.db file to this:
[showif [url][param1][/url]^[url].inc[/url]]Error: include file: '[param1]' not found...[/showif][hideif [url][param1][/url]^[url].inc[/url]][returnraw]HTTP/1.2 404 [showif [fileinfo /error.html][exists][/fileinfo]=3DT][include=file=3D/error.html][/showif][unurl]%0D%0A%0D%0A[/unurl][/ReturnRaw][/hidei=f]
I'm running the server version of WebDNA and had to change that for the MASTER and all SANDBOXES.
-Matt
On 9/23/2014 6:01 AM, Steve Craig wrote:
Hi All
I'm sure this has been spoken about before but I can't seem to find an answer. My sites use a CMS and tend to be based on using the page not found triggering the ErrorMessages.db to look up a site database etc.
When a page is not in my database I put up a standard 404 looking page but it still sends out a 200 response and I'm trying to find out how I can send a genuine 404 response.
Can anyone tell me what I would need to add to get this to work, is it possible?
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=3DSteve Craig - Asylum InteractiveTel +44 1330 860550=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DEmail: steve@asylumweb.comSkype: 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
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list. To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.us Bug Reporting: support@webdna.us
--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatormatt@psiprime.comPsi Prime, Inc.323 Union Blvd.Totowa, NJ 07512Direct: 888.872.0274Fax: 888.488.5924http://www.perosi.com.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
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...