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


(Joun Qin) #1

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 https://caddy.community/t/redirect-from-www-domain-com-to-domain-com/707/2?u=jounqin

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


(Matthew Fay) #2

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.

https://letsencrypt.org/docs/rate-limits/
https://letsencrypt.org/docs/staging-environment/