From b675fbcd32a4f7b7bef0ec69d98e9dbfd1cd04e4 Mon Sep 17 00:00:00 2001 From: rene Date: Wed, 6 May 2026 10:35:41 +0200 Subject: [PATCH] =?UTF-8?q?SEO:=20canonical=20/=20statt=20/info,=20/info?= =?UTF-8?q?=20=E2=86=92=20301-Redirect,=20Sitemap=20bereinigt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 4 ++-- backend/static/landing.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/main.py b/backend/main.py index df40ce5..20354b1 100644 --- a/backend/main.py +++ b/backend/main.py @@ -377,7 +377,6 @@ async def sitemap(): today = date.today().isoformat() urls = [ ("https://banyaro.app/", "weekly", "1.0"), - ("https://banyaro.app/info", "monthly", "0.9"), ("https://banyaro.app/presse", "monthly", "0.8"), ("https://banyaro.app/wiki/rassen", "weekly", "0.8"), ("https://banyaro.app/knigge", "monthly", "0.8"), @@ -432,7 +431,8 @@ async def sitemap(): @app.get("/info") async def info_page(): - return FileResponse(f"{STATIC_DIR}/landing.html", headers={"Cache-Control": "max-age=3600"}) + from fastapi.responses import RedirectResponse + return RedirectResponse(url="/", status_code=301) # ------------------------------------------------------------------ diff --git a/backend/static/landing.html b/backend/static/landing.html index ae65568..df60c47 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -7,7 +7,7 @@ - +