AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{QUERY_STRING} (.+)=(.+)
RewriteRule .* https://meinurl/cgi-bin/script.pl?%1=%2 [L]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://meinurl.de/$1 [L]