SEO: robots.txt + sitemap.xml + <noscript> content block + 301 redirect old->new domain

This commit is contained in:
drjones
2026-09-01 21:30:26 -07:00
parent 9ed89ae6ea
commit 7266c2920a
4 changed files with 105 additions and 0 deletions

24
app.py
View File

@@ -60,6 +60,30 @@ def index():
def images(filename):
return send_from_directory(os.path.join(BASE_DIR, "images"), filename)
@app.route("/robots.txt")
def robots():
body = (
"User-agent: *\n"
"Allow: /\n"
"Sitemap: https://evergreenapplicator.thetempleofdoom.com/sitemap.xml\n"
)
return body, 200, {"Content-Type": "text/plain; charset=utf-8"}
@app.route("/sitemap.xml")
def sitemap():
body = (
'<?xml version="1.0" encoding="UTF-8"?>\n'
'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n'
' <url>\n'
' <loc>https://evergreenapplicator.thetempleofdoom.com/</loc>\n'
' <lastmod>2026-09-01</lastmod>\n'
' <changefreq>weekly</changefreq>\n'
' <priority>1.0</priority>\n'
' </url>\n'
'</urlset>\n'
)
return body, 200, {"Content-Type": "application/xml; charset=utf-8"}
@app.route("/api/status")
def api_status():
oid = request.args.get("order", "")