views:

93

answers:

1

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.

A: 

My experience- see if your URL is having a "//" (double slash) anywhere in it. If it is having it, then it works on localhost but it does not work on cloud.

Gopi
But there's no double slash. GAE log shows that the empty page is caused by 404 error.
PJ.Hades