Apache with Let's encrypt (non-www, https-only): The page isn’t redirecting properly

so your port 80 config should look more something like this

<VirtualHost *:80>

ServerName domain.tld
ServerAlias www.domain.tld
ServerAdmin contact@domain.tld
DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Redirect permanent / https://domain.tld/
</VirtualHost>
2 Likes