1

I have set up a website and I want to set up a 404 error page. Is there a way of doing this as i can't seem to access the .htaccess file?

Thanks in advance, Scott

Scott MacK
  • 31
  • 1
  • 1
    If your looking for a .htaccess file on appengine then you really need to do some reading on the basics of app engine. You will save yourself a lot of time getting your head around the architecture, rather than looking for apache equivalents etc.. – Tim Hoffman Jul 03 '12 at 11:26

2 Answers2

0

python? https://developers.google.com/appengine/docs/python/config/appconfig#Custom_Error_Responses

java? https://developers.google.com/appengine/docs/java/config/appconfig#Custom_Error_Responses

see Google App Engine and 404 error

Community
  • 1
  • 1
user1258245
  • 3,639
  • 2
  • 18
  • 23
  • Custom error handlers are generic and therefore won't be specific to a 404 error page. – Tim Hoffman Jul 03 '12 at 11:28
  • what about this http://stackoverflow.com/a/10861989/1258245 makes me think if you could forward to a servlet instead of an html page, that you could do the same in java – user1258245 Jul 03 '12 at 11:53
  • if you read through that thread, pay attention to Nick Johnsons responses. static handlers can't return anything but 200 response. You normally have a 404 handler, – Tim Hoffman Jul 03 '12 at 15:03
0

The documentation now clearly states that custom 404 pages will not work.

https://cloud.google.com/appengine/docs/standard/java/config/webxml#Error_Handlers

Note: At present, you cannot configure custom error handlers for some error conditions. Specifically, you cannot customize the 404 response page when no servlet mapping is defined for a URL, the 403 quota error page, or the 500 server error page that appears after an App Engine internal error.

Dev Vercer
  • 166
  • 1
  • 7