app.yaml:

- url: /.*
  script: main.py


main.py:

# some imports and classed

application = webapp.WSGIApplication([('/page1', Page1),
                                      ('/page2', Page2),
                                      ('/.*', MainPage)]) # all other urls
will handled by this MainPage class

run_wsgi_app(application)

2009/4/16 Ben Nevile <ben.nev...@gmail.com>

>
> Say, I sure would like to be able to catch all the weird historical
> urls that come into my application and redirect them to my home page.
> Does anyone know how to specify a "if it doesn't match any of the
> others, use this handler" mapping?
>
> Ben <3 GAE
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to