Options -Indexes
DirectoryIndex index.cgi index.html index.htm

<IfModule mod_rewrite.c>
RewriteEngine on
Options -MultiViews
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9A-Za-z\_\-]+)$ $1.cgi [L]
</IfModule>

