SOLVED Direcionamento http para https via htaccess

Apr 9, 2022
Rio de Janeiro
cPanel Access Level
Root Administrator
Good night, as you all know, cPanel has the htaccess file by default and in the same we have the option to direct forcing the ssl certificate from http to https showing in the browser leaving the site safe.
I want to put the following code inside the htaccess file by default, that is, every cpanel account when created by whm already contains the following code inside.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

so all domains by default will be forced to display the ssl certificate in browsers.

My question how do I do this?