: Page for page redirect in Google App Engine I have recently changed domain name for a webapp I run on Google App Engine and I am wondering if there is a simple way to do a page for page
I have recently changed domain name for a webapp I run on Google App Engine and I am wondering if there is a simple way to do a page for page redirect from my old website to the new domain. Everything code wise is staying exactly the same but I just want it to go to the new domain.
I am using Python and the webapp2 framework for the web app.
I know I could go through and for every single handler do:
webapp2.redirect('the specific url', permanent=True)
but I am hoping for a simpler solution.
More posts by @Kevin317
1 Comments
Sorted by latest first Latest Oldest Best
You should be able to do this on a global scale using webapp.RequestHandlers
class FormHandler(webapp.RequestHandler):
def post(self):
if processFormData(self.request):
self.redirect("the specific url")
else:
Also this your find more support on stack overflow since this is python based coding.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.