How to redirect `` to ``?

My website is powered by GitHub Pages with HTTPS support, so I want to redirect all requests including to Caddyfile is as following: {

like Redirect from to - #2 by matt

However, when I restart caddy server, there are errors from Let’s Encrypt about rate limits. How to make it working?

There’s nothing Caddy can do about LetsEncrypt’s rate limits, I’m afraid. If you tripped one of their limits, you’ll have to wait a week for it to roll over. In the meantime, you can provide your own certificates to get your site running. Their staging environment has no rate limits, which makes it useful for testing.

Rate Limits - Let's Encrypt
Staging Environment - Let's Encrypt

1 Like