Mobile app version of vmapp.org
Login or Join
Kevin317

: 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

@Kevin317

Posted in: #301Redirect #Domains #GoogleAppEngine #Python

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin317

1 Comments

Sorted by latest first Latest Oldest Best

 

@Speyer207

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme