[WebDNA] set HTTP-Status Code from webdna

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112669
interpreted = N
texte = 252 --Apple-Mail=_3A35FE2B-FDAB-4726-ABE4-52C6848392D5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi everybody, The Question First: Is it possible to set the HTTP-Status Codes with = webdna? Explanation why we need to do this: I=E2=80=99ve been working with webdna for 3 years now but our our = business is on webdna since the 90ies; using it for a web-cms and custom = web-solutions. We now host about 150 websites on lighttpd. We newly started using "url-rewrite" so we can have custom urls for our = websites. It directs calls from domain.com/cms/something = to domain.com/cms.dna?url=3Dsomething = .=20 Example: Visitor goes to domain.com/cms/aboutus = and it shows domain.com/cms.dna?url=3Daboutus= cms.dna = ?url=3Daboutus -> webdna = finds =E2=80=9Eaboutus" in DB and shows correct site Problem: Visitor goes to domain.com/cms/somethingwrong = and it shows = domain.com/cms.dna?url=3Dsomethingwrong = cms.dna = ?url=3Dsomethingwrong -> = webdna does not find somethingwrong in DB and shows an error-page but = the HTTP status remains 200! Is it possible to set the HTTP-Status Code with webdna? In this case to = 404 in other cases to something else. Or how would you solve that = problem? Thanks! Noah Valley mac&web gmbh S=C3=A4ntistrasse 13 8200 schaffhausen switzerland Tel +41 52 620 30 60 Fax +41 52 620 30 61 valley@mac-web.ch www.mac-web.ch --Apple-Mail=_3A35FE2B-FDAB-4726-ABE4-52C6848392D5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi everybody,

The Question First: Is it possible to set the HTTP-Status = Codes with webdna?

Explanation why we need to do this:
I=E2=80= =99ve been working with webdna for 3 years now but our our business is = on webdna since the 90ies; using it for a web-cms and custom = web-solutions. We now host about 150 websites on lighttpd.
We newly started using "url-rewrite" so we can have custom = urls for our websites. It directs calls from domain.com/cms/something to domain.com/cms.dna?url=3Dsomething
Example: Visitor goes to domain.com/cms/aboutus and it shows domain.com/cms.dna?url=3Daboutus -> webdna finds = =E2=80=9Eaboutus" in DB and shows correct site
Problem: Visitor goes to domain.com/cms/somethingwrong and it shows domain.com/cms.dna?url=3Dsomethingwrong -> webdna = does not find somethingwrong in DB and shows an error-page but the = HTTP status remains 200!

Is it possible to set the HTTP-Status Code with webdna? In = this case to 404 in other cases to something else. Or how would you = solve that problem?

Thanks!

Noah Valley
mac&web = gmbh
S=C3=A4ntistrasse 13
8200 = schaffhausen
switzerland

Tel = +41 52 620 30 60
Fax +41 52 620 30 61
valley@mac-web.ch
www.mac-web.ch

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_3A35FE2B-FDAB-4726-ABE4-52C6848392D5-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] set HTTP-Status Code from webdna (Brian Burton 2016)
  2. Re: [WebDNA] set HTTP-Status Code from webdna (Noah Valley 2016)
  3. Re: [BULK] Re: [WebDNA] set HTTP-Status Code from webdna (Tom Duke 2016)
  4. Re: [BULK] Re: [WebDNA] set HTTP-Status Code from webdna (Brian Burton 2016)
  5. Re: [BULK] Re: [WebDNA] set HTTP-Status Code from webdna (christophe.billiottet@webdna.us 2016)
  6. Re: [WebDNA] set HTTP-Status Code from webdna (Brian Burton 2016)
  7. [BULK] Re: [WebDNA] set HTTP-Status Code from webdna (Brian Burton 2016)
  8. Re: [WebDNA] set HTTP-Status Code from webdna (Jym Duane 2016)
  9. Re: [WebDNA] set HTTP-Status Code from webdna (Noah Valley 2016)
  10. Re: [WebDNA] set HTTP-Status Code from webdna (Brian Burton 2016)
  11. [WebDNA] set HTTP-Status Code from webdna (Noah Valley 2016)
252 --Apple-Mail=_3A35FE2B-FDAB-4726-ABE4-52C6848392D5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi everybody, The Question First: Is it possible to set the HTTP-Status Codes with = webdna? Explanation why we need to do this: I=E2=80=99ve been working with webdna for 3 years now but our our = business is on webdna since the 90ies; using it for a web-cms and custom = web-solutions. We now host about 150 websites on lighttpd. We newly started using "url-rewrite" so we can have custom urls for our = websites. It directs calls from domain.com/cms/something = to domain.com/cms.dna?url=3Dsomething = .=20 Example: Visitor goes to domain.com/cms/aboutus = and it shows domain.com/cms.dna?url=3Daboutus= cms.dna = ?url=3Daboutus -> webdna = finds =E2=80=9Eaboutus" in DB and shows correct site Problem: Visitor goes to domain.com/cms/somethingwrong = and it shows = domain.com/cms.dna?url=3Dsomethingwrong = cms.dna = ?url=3Dsomethingwrong -> = webdna does not find somethingwrong in DB and shows an error-page but = the HTTP status remains 200! Is it possible to set the HTTP-Status Code with webdna? In this case to = 404 in other cases to something else. Or how would you solve that = problem? Thanks! Noah Valley mac&web gmbh S=C3=A4ntistrasse 13 8200 schaffhausen switzerland Tel +41 52 620 30 60 Fax +41 52 620 30 61 valley@mac-web.ch www.mac-web.ch --Apple-Mail=_3A35FE2B-FDAB-4726-ABE4-52C6848392D5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi everybody,

The Question First: Is it possible to set the HTTP-Status = Codes with webdna?

Explanation why we need to do this:
I=E2=80= =99ve been working with webdna for 3 years now but our our business is = on webdna since the 90ies; using it for a web-cms and custom = web-solutions. We now host about 150 websites on lighttpd.
We newly started using "url-rewrite" so we can have custom = urls for our websites. It directs calls from domain.com/cms/something to domain.com/cms.dna?url=3Dsomething
Example: Visitor goes to domain.com/cms/aboutus and it shows domain.com/cms.dna?url=3Daboutus -> webdna finds = =E2=80=9Eaboutus" in DB and shows correct site
Problem: Visitor goes to domain.com/cms/somethingwrong and it shows domain.com/cms.dna?url=3Dsomethingwrong -> webdna = does not find somethingwrong in DB and shows an error-page but the = HTTP status remains 200!

Is it possible to set the HTTP-Status Code with webdna? In = this case to 404 in other cases to something else. Or how would you = solve that problem?

Thanks!

Noah Valley
mac&web = gmbh
S=C3=A4ntistrasse 13
8200 = schaffhausen
switzerland

Tel = +41 52 620 30 60
Fax +41 52 620 30 61
valley@mac-web.ch
www.mac-web.ch

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us --Apple-Mail=_3A35FE2B-FDAB-4726-ABE4-52C6848392D5-- . Noah Valley

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:

WebMerchant 1.6 and https (1997) Feature discussion: simple way for [url] and [convertchars] (2000) Search/sort in URL Was: GuestBook example (1997) Kill the webcat process (2000) [sendmail] questions... (1997) Spaces inside [AppendFile] (1998) Extended [ConvertChars] (1997) Problem (1997) Re[2]: Re[2]: OT: Amazon Patents (2000) Using Applescript to process WebCatalog functions (1998) Off Topic: Frames Killer? (1998) [WebDNA] WebDNA Showcase? (2008) F2 to F3 rocky transition (1997) syntax question, not in online refernce (1997) WebCatalog2 Feature Feedback (1996) Setting up shop (1997) Re:HTTP header line is too long? (1997) Text data with spaces in them... (1997) One Hour Email (2002) Include Troubles (1998)