On Tue, Jan 13, 2015 at 11:23 PM, Nikhil P Naik <[email protected]> wrote: > > webapp2.Route('/', webapp2.RedirectHandler, defaults={'_uri':' > http://subdomain.domain.com}), > ], debug=False) > > def main(): > application.run() > > if __name__ == '__main__': > main() > > > But it doesn't seem to work. The appspot URL is not being redirected but > my custom domain is working alright. What changes should I make in the > above code to make the redirection possible? >
First of all, your code is wrong: you didn't put an ending single quote mark after the .com, so Python thinks that the next few lines are part of the string. Just to clarify: you don't want the appspot URL to ever show up, correct? If an user visits your appspot.com address, you want them to always see your custom domain in their address bar? If so, I'd try a different solution such as this one: http://stackoverflow.com/a/8681704 ----------------- -Vinny P Technology & Media Consultant Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CALSvALCXV0hg%2BwHunNrnPY_jPBvL6xmVLefmLF9GtQYD-uc3nw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
