I hired a coder a few years back to design a site completely in CGI. Everything worked perfectly until one day that web host went down. Now, a few years later, I am trying to get it back online.

The entire site is CGI including index.cgi. Little did I know that my current webhost doesn't allow CGI files executed outside the www directory. So now I'm sort of stuck. The main index page is a CGI file, how can I get it to load?

I believe I heard one time that you can change how things appear to load with .htaccess. Is there a way I can make ANY file load by default when my page is called from it's root domain? If this is done via .htaccess, my site says it has it so any help from there would be great.

Or am I out of luck and I need to find a new webhost?


In reply to CGI index as text by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.