add http:// ? googUrl = "http://www.google.com"
On Oct 24, 3:57 am, tttttooooodddd ddddddvnek <[email protected]> wrote: > --- On Fri, 10/23/09, akuchlous <[email protected]> wrote: > > , space Goto ? (r'/(.*)',Goto)], > > From: akuchlous <[email protected]> > Subject: [google-appengine] redirect to external page > To: "Google App Engine" <[email protected]> > Date: Friday, October 23, 2009, 3:49 AM > > I am using a development server on my machine. > > I want to redirect anything like: > > http://localhost.8080/abcd > > to > > www.google.com > > This does not seem to work: > > class Goto(webapp.RequestHandler): > def get(self, url): > googUrl = "www.google.com" > self.redirect(googUrl, permanent=True) > > application = webapp.WSGIApplication( > [('/', MainPage), > (r'/(.*)',Goto)], > > If i type in address bar:http://localhost:8080/abcd > > then I should be redirected towww.google.com > > but right now I get redirect tohttp://localhost:8080/www.google.com > > how can i solve it? > > Thanks > Ankur K --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
