On Mar 24, 2016, at 10:53 AM, Noah Valley <valley@mac-web.ch> =wrote:Hi =everybody,---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listThe =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=9Eabou=tus" in DB and shows correct siteProblem: 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.To unsubscribe, E-mail to: =div>archives: http://mail.webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
|
On Mar 24, 2016, at 10:53 AM, Noah Valley <valley@mac-web.ch> =wrote:Hi =everybody,---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listThe =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=9Eabou=tus" in DB and shows correct siteProblem: 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.To unsubscribe, E-mail to: =div>archives: http://mail.webdna.us/list/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...