Comment to 'HTTPS doesen't work!'
  • While this can be added to the .htaccess file it is better to add it to the vhost entry.  

    For the nginx folks

    server {
    listen 80;
    server_name domain.tld www.domain.tld;
    return 301 https://$server_name$request_uri;
    }