--- On Fri, 10/23/09, akuchlous <akuchl...@gmail.com> wrote:


   , space Goto ?                                 (r'/(.*)',Goto)],









From: akuchlous <akuchl...@gmail.com>
Subject: [google-appengine] redirect to external page
To: "Google App Engine" <google-appengine@googlegroups.com>
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 to www.google.com

but right now I get redirect to
http://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 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