How to create 301 redirect to a new domain

@itsbhanusharma I am implementing the code right now. My question is whether LetsEncrypt will renew itself as I intend to live the old server for some time until the URLs are changed by Google. Is there anything I need to add so LetsEncrypt renewal won’t fail due to this 301 redirection change?

Is this can work Setting up Let’s Encrypt with Multiple Domains

I want to exclude .well-known/acme-challenge from a redirect,

issue with 301 redirect and LetsEncrypt

1 Like