Rewrite to HTTPS

Not sure what you mean by that. My understanding was that you wanted every other version of the URL to redirect to https://www.example.com, which is what the code in post 4 of that thread does.