Try adding
RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
as the first rewrite rule in your .htaccess (directly after RewriteEngine On).
Rewriting example.org to www.example.org and also rewriting www.example.org to example.org does not make any sense, as that would have the rewrite go in circles.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.