For nginx in website Url Rewrite tab I use this
#add www to domain
if ($host = dosula.com) {
return 301 https://www.$host$request_uri;
} # managed by Certbot
to redirect from non-www to www. This brokes Let's Encrypt SSL renew and I need to remove the script every time I want to renew the SSL.
Does anybody have a good alternative?
(I use drupal)