How can I change from HTTP to HTTPS?

in the virtual host .conf files you mean…?
and where from in the starterkit…?

regarding the cache I I had checked whether the site was caching as you had mentioned here: Set up https instead http - #2 by texnixe

also, as you suggest here: Forced SSL leads to 404 page at "index.php" - #2 by texnixe I tried to set the rewrite in the virtual host conf files.
My options are as follows, in two different files:

<VirtualHost *:80>
ServerName myserver.net
ServerAlias www.myserver.net
Redirect 301 "/" "https://myserver.net/"
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

and

<IfModule mod_ssl.c>
<VirtualHost *:443>
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    ServerName www.myserver.net
    
    SSLCertificateFile /etc/letsencrypt/live/www.myserver.net/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/www.myserver.net/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf

</VirtualHost>
</IfModule>