diff --git a/.htaccess b/.htaccess index 72c0dc4..08beeb1 100644 --- a/.htaccess +++ b/.htaccess @@ -3,4 +3,10 @@ RewriteEngine on -RewriteRule ^([^./]+)/?$ index.php?action=$1 [L,NC] + +# https://wiki.uberspace.de/webserver:htaccess +RewriteCond %{HTTPS} !=on +RewriteCond %{ENV:HTTPS} !=on +RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] + +RewriteRule ^([^./]+)/?$ /index.php?action=$1 [L,NC]