Returning 503 from application
Aditya Jain
6 May 2014, 04:42
Actually I am using Hiawatha to host wordpress. I was trying to make some changes to the website, and so I didn't want google to index it. Therefore I installed a maintenance plugin. Now, the response from hiawatha is
HTTP/1.1 200 OK
Date: Tue, 06 May 2014 02:39:14 GMT
Server: Hiawatha v9.2
Connection: keep-alive
Transfer-Encoding: chunked
HTTP/1.1 503 Service Temporarily Unavailable
It is still sending 200 status, probably as it is able to find the index.php page or any other page. Is there any way to change this behaviour so that I can return 503 and still handle the request in Wordpress?
Hiawatha version: 9.2
Operating System: Debian7
Aditya Jain
6 May 2014, 06:00
I figured it out. It is a wordpress issue, nothing to do with hiawatha.
Is it possible to do agent dependent url rewrites?
Hugo Leisink
6 May 2014, 06:41
Yes, use the Header command of the UrlToolkit. Use it to check the User-Agent HTTP header.
Aditya Jain
11 May 2014, 18:23
Thanks!
This topic has been closed.