Skip to content

Commit

Permalink
Redirect staging to DevSite (google#4043)
Browse files Browse the repository at this point in the history
  • Loading branch information
petele authored Jan 13, 2017
1 parent 52f2a9b commit 8413600
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion appengine_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ class HomePage(webapp2.RequestHandler):
def get(self):
self.redirect('/web/', permanent=True)

class DevSiteRedirect(webapp2.RequestHandler):
def get(self, path):
self.redirect('https://developers.google.com/' + path, permanent=True)

class Framebox(webapp2.RequestHandler):
def get(self, path):
response = None
Expand Down Expand Up @@ -98,5 +102,6 @@ def get(self, path):
app = webapp2.WSGIApplication([
('/', HomePage),
('/web/(.*)', DevSitePages),
('/framebox/(.*)', Framebox)
('/framebox/(.*)', Framebox),
('/(.*)', DevSiteRedirect)
], debug=DEVENV)

0 comments on commit 8413600

Please sign in to comment.