Redirects in Caddy: Safer Patterns for HTTPS, Host and Path Changes
Keep Caddy rules explicit
Caddy is convenient, but redirect logic should still be predictable. Combine host normalization, HTTPS enforcement, and path changes carefully instead of stacking overlapping shortcuts.
Where teams get into trouble
The common mistakes are duplicated host rules, mixing rewrites with redirects, and sending too many cases to the homepage instead of a real replacement URL.
Safer approach
Model the intended destination first, then write the smallest rule set that achieves it. After every change, test protocol, host, trailing slash, and legacy paths as a group.
Next Step
Related tools and articles
SEO
Redirects After Site Migration: What to Check Once the New Site Is Live
A migration is not finished when the site launches. Redirects need a second pass after release, when real users, bots, and old links hit the new stack.
OpenAnalytics
Redirects and UTM Parameters: How to Preserve Attribution Without Making URLs Messy
Redirects can break attribution when campaign parameters are dropped, overwritten, or sent through unnecessary hops. Clean tracking depends on careful redirect behavior.
Open