class Handler(webapp.RequestHandler):
  def get(self):
    self.set_status(301)
    self.redirect("/home")

and make Handler class to handle your url.

2009/4/18 richardcur...@googlemail.com <richardcur...@googlemail.com>

>
> Hi,
>
> how do I somehow 'redirect' all calls to appengine url to my Google
> Apps url?
>
> Something like: (Status-Line)   HTTP/1.1 301 Moved Permanently
>
>
>
> if somebody calls:
>
> http://example.appspot.com I want it to be redirected to
>
> http://www.example.com
>
>
> similarily if somebody calls
>
> http://example.appspot.com/data/34354/fractal
>
> I want the browser of the user show http://example.com/data/34354/fractal
> >
>

--~--~---------~--~----~------------~-------~--~----~
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