Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Let the script generate index.cgi instead of index.html

Quote Reply
Let the script generate index.cgi instead of index.html
Hello.
I own a site where my index.html is being generated an index.cgi file. Now I want to replace all with the generated index.html (from /templates/home.html). The problem is that I have to generate an index.cgi. Where can I configure this?

Guvenc
Quote Reply
Re: Let the script generate index.cgi instead of index.html In reply to
In links.cfg:

Code:
# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";

I hope this helps.
Quote Reply
Re: Let the script generate index.cgi instead of index.html In reply to
The .cgi file name extention is usually to denote a file that runs on the server. Since all the files generated by links are static HTML (text) files, your server may have a problem if you rename them to .cgi and it tries to run them.

Before you do it, I suggest you rename ONLY ONE HTML file with a .cgi extention and see if it works OK.

Dan O.