Welcome to WebmasterWorld Guest from 18.104.22.168
RewriteRule ^(.*)\.html$ mycgi?parm=$1 [T=application/x-httpd-cgi]
This strips the ".html" from the file name and passes the remainder as a parameter to my cgi.
The format of the file name is a 5 digit numeric.
Is it possible using .htaccess to just pass the 1st 4 digits as the parameter to the cgi.
eg. 12345.html calls mycgi with parm=1234