In htaccess, this is where HideMyWP rewrites everything:

The problem is, I need to place this code below “RewriteEngine On” to redirect everything to HTTPS:
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
It will look like this:

Everything worked fine. But whenever I clear the cache, the 2 lines of code that I’ve just added were always deleted. It seems that HideMyWP doesn’t allow manual modifications in that area.
I need to place the codes below “RewriteEngine On” (where HideMyWP rewrites) or else it won’t work. I already tried adding another “RewriteEngine On” below but it’s not working properly.
What are the possible solutions to this? I really need to make HTTPS work.
Thanks in advance!