HTTP to HTTPS problems

I tryed to change my site to but it doesn’t work editing the .htaccess file.
What can I do?

And I discovered that if I type in .htaccess file this code:
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
and save the file, It will save the file but some minutes later the file will disappear

The .htaccess method might work (and I’m happy to advise on if you are willing and able to provide a lot more details), but since you’re using Wordpress, just setting the site URL to https is safer and easier.

Thanks you for your answer and I tried with wordpress, but it still doesn’t work and I don’t know what’s the problem

I tried some plugins but the page is still HTTP

I tried to view your site and get redirect to the https version of your site now.

I tried a lot of things but is still HTTP

@Sokoka said:
I tried a lot of things but is still HTTP

Like what? Cleared your browser cache? Tried with different browsers, networks and devices?