Already carrying this out rewrite rule

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://www.%{SERVER_NAME}%{REQUEST_URI}

The asked for url is

https://www.example.com/abc.php?a=&b=abc&c=def&d=0&e=1

to

https://www.example.com/abc.php?a=&b=abc&c=def&d=0&e=1

add the NE tag in the finish from the rule (No Escape):

RewriteRule (...) [NE]