I have added a directive in my vhost Code: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Subsequently I removed it, but it is not removed from the vhost file, I had to manually remove the code.
According to the Apache docs it's better to use Redirect instead of Rewrite: https://wiki.apache.org/httpd/RedirectSSL Code: Redirect permanent / https://domain.tld/ Unfortunately it doesn't work with wildcards.
yes, but it will both forward to domain.tld or www.domain.tld - depending on what you have in your rule. Same goes if the origin is an alias domain. It would then forward for example for www.alias-domain.tld -> domain.tld