#!/usr/bin/pythonimportwebimportcontroller## URL Mappings#urls=("/r/(.*)","controller.Redirect","/(.*)","controller.Page")## The App#app=web.application(urls,globals())app.notfound=controller.FourOhFour# debug for the momentweb.config.debug=True## And go!if__name__=="__main__":app.run()