# wenn Parameter im Querystring dann ans CGI RewriteCond %{SERVER_PORT} !^443$ RewriteCond %{QUERY_STRING} (.+)=(.+) RewriteRule .* https://www.example.org/cgi-bin/script.pl?%1=%2 [L] # sonst alle URI nach https umleiten RewriteCond %{SERVER_PORT} !^443$ RewriteRule (.*) https://www.example.org/$1 [L]