This is the problem:
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
This doesn't allow you to have any static pages on your site - all index.html will be rewritten to dynamic Links pages. If you use a specific directory for your links pages, you can just put the directory into this rule and it will only rewrite static pages in that directory.
RewriteRule ^(.*).html /cgi-bin/page.cgi?g=$1.html [L]
This doesn't allow you to have any static pages on your site - all index.html will be rewritten to dynamic Links pages. If you use a specific directory for your links pages, you can just put the directory into this rule and it will only rewrite static pages in that directory.