google app engine - set 404 page for php -
i have create dynamic page error code 404. how can set same in app.yml?
i tried setting error handlers in app.yml not working.
error_handlers: - error_code: 404 file: page404.php
it keeps on giving:
the url <wrong url> not match handlers.
a couple of things note.
you don't have use error handlers deal 404. , there no specific 404 error handler. there following error_handler types
a default handlers ,
over_quota, indicates app has exceeded resource quota; dos_api_denial, served client blocked app's dos protection configuration; timeout, served if deadline reached before there response app.
see docs https://developers.google.com/appengine/docs/php/config/appconfig#custom_error_responses
in addition custom error handler not render php script need static html, if want 404 response page run php need use normal handler catches not matching 1 of handlers, per other answer.
Comments
Post a Comment