How to add a redirect to https? : <p>I already have a redirect to the main page of the site:</p>

<pre><code>RewriteEngine On
RewriteRule ^$ index.php [QSA]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</code></pre>

<p>But if you type <code>domain.com</code>, then the redirection will be to <code>example.com/index.php</code> But I need to redirect immediately to <code>https://example.com/index.php</code></p>
