caddy: fix /home2,/home3 redirect (redir destination, not a path matcher)
`redir / permanent` mis-parsed — Caddy read the leading `/` as a path matcher and `permanent` as the destination, so it only matched `/` and emitted a broken 302 to "permanent". Use an explicit destination URL (matching the www→apex idiom): `redir https://upbeatbytes.com/ permanent`. Live Caddy reloaded; snapshot mirrored. Verified: /home2,/home3,/home3.html → 301 → /. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -49,7 +49,7 @@ upbeatbytes.com {
|
|||||||
@oldhome path /home2 /home2.html /home3 /home3.html
|
@oldhome path /home2 /home2.html /home3 /home3.html
|
||||||
handle @oldhome {
|
handle @oldhome {
|
||||||
redir https://upbeatbytes.com/ permanent
|
redir https://upbeatbytes.com/ permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
# Dynamic API + server-rendered pages (share, digest, sitemap) → FastAPI.
|
# Dynamic API + server-rendered pages (share, digest, sitemap) → FastAPI.
|
||||||
@api path /api/* /healthz /docs /docs/* /openapi.json /a/* /today /sitemap.xml
|
@api path /api/* /healthz /docs /docs/* /openapi.json /a/* /today /sitemap.xml
|
||||||
|
|||||||
Reference in New Issue
Block a user