SEO: robots.txt + sitemap.xml + <noscript> content block + 301 redirect old->new domain
This commit is contained in:
24
app.py
24
app.py
@@ -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", "")
|
||||
|
||||
Reference in New Issue
Block a user