RewriteRule ^/([a-zA-Z_0-9]+)\.html\?(.*)$ /cgi-bin/application.pl?id=$1&$2 [PT]