I have never seen that = syntax before. Does it work if you remove that symbol from the RewriteCond lines?
Since this file was generated by Certbot anyway, maybe we should take the approach that Certbot should actually generate these rules correctly by itself. Any thoughts @schoen ?
Edit: actually, nevermind. The redirect seems to work fine for me, but does not seem the correlate with the above config section:
Ok, Let’s work!
I’ve tried too with curl -I and using a different browser.
But with the previous browser still not work for www …
I’m not sure that SERVER_NAME could be the problem, at this point I think that the browser cache have joked me!