(r"/static/(.*)", tornado.web.StaticFileHandler, { "path" : self.settings.get("static_path") }),
] + authentication_handlers)
- # location.ipfire.org
+ # location.ipfire.org and /projects/location
self.add_handlers(r"location\.([a-z]+\.dev\.)?ipfire\.org", [
- (r"(.*)", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/projects/location{0}" }),
+ (r"(.*)", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/location{0}" }),
+ ])
+ self.add_handlers(r"www\.([a-z]+\.dev\.)?ipfire\.org", [
+ (r"/projects/location/(.*)", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/location{0}" }),
])
# geoip.ipfire.org