Caddy HTTPS Redirect Configuration
Caddy's automatic HTTPS handles HTTP-to-HTTPS redirection by default, but you may also need to canonicalise your domain. Generate the correct Caddyfile snippet for both www and non-www redirect rules here.
Ready to generate your configuration? Use the tools in the navigation above to create a reverse proxy, static site, or PHP-FPM config in seconds.