File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,12 @@ def deleteGame(id):
8484 return "<p>Stop hacking</p>"
8585 return flask .redirect ('/catalog' )
8686
87+ @app .route ("/sitemap.xml" )
88+ @app .route ("/robots.txt" )
89+ @app .route ("/favicon.ico" )
90+ def static_from_root ():
91+ return flask .send_from_directory (app .static_folder , flask .request .path [1 :])
92+
8793@app .errorhandler (Exception )
8894def page404 (e ):
8995 eCode = 500
@@ -97,5 +103,3 @@ def page404(e):
97103
98104if __name__ == '__main__' :
99105 app .run (host = 'localhost' , debug = True )
100-
101-
Original file line number Diff line number Diff line change 1+ # https://www.robotstxt.org/robotstxt.html
2+ User-agent: *
3+ Disallow: /404/
4+ Sitemap: https://devcade.csh.rit.edu/sitemap.xml
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <urlset xmlns =" http://www.sitemaps.org/schemas/sitemap/0.9" >
3+ <url >
4+ <loc >https://devcade.csh.rit.edu</loc >
5+ <loc >https://devcade.csh.rit.edu/catalog</loc >
6+ <lastmod >2023-02-22</lastmod >
7+ </url >
8+ </urlset >
You can’t perform that action at this time.
0 commit comments