The answer is here: How can i use script in sub folders on gae?
Its not explicitly stated, but in the answer you must change /foo/
to /foo
in the WSGIApplication
call, which maps to www.bar.com/foo
. If you want to map to www.bar.com/foo.html
you need to change /foo
to /foo.*
in the WSGIApplication
call AND the url handler in app.yaml to - url: /foo\.html