Hi,
ich nutze im Apache folgendes:
im nicht-SSL-Teil: (dieser Teil upgraded die Verbindung für domain.xyz und http://www.domain.xyz auf https)
Apache Configuration
<VirtualHost *:80>
ServerName domain.xyz
ServerAlias www.domain.xyz
# http->https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
Im SSL-Teil: (hier wird bei Bedarf dann der www-Teil nachgeschoben: domain.xyz -> http://www.domain.xyz)