How to redirect `1stg.me` to `www.1stg.me`?

My website www.1stg.me is powered by GitHub Pages with HTTPS support, so I want to redirect all 1stg.me requests including https://1stg.me to https://www.1stg.me.My Caddyfile is as following:

1stg.me {
  redir https://www.1stg.me{uri}
}

like Redirect from www.domain.com to domain.com - #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