There is a simple way to redirect all requests from http to https when using
Uberspace.
Just put in the following lines into your .htaccess file:
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]