This is my app.yaml:
- url: /about|/about/.*
script: about.py
This is my `about.py':
application = webapp.WSGIApplication([(r'^/about$', AboutPage),
(r'^/about/$', Redirect),
(r'.*', ErrorPage)],
debug = True)
I want to redirect all requests for /about/
to /about
. I'd like all other requests to be sent to the error page.
It works in the development server on localhost, but I cannot access /about/
after I deployed the app on GAE - it just shows an empty page.
I adjusted the order of URL patterns in app.yaml. It works now on GAE.