Gossamer Forum
Home : Products : Links 2.0 : Discussions :

home.html build as indexa.shtml

Quote Reply
home.html build as indexa.shtml
Is it possible to have only home.html build as indexa.shtml in the root directory? I thought I could change it in:
# The name of an index file.
$build_index = "indexa.shtml";
But then the index files in all directories change to indexa.shtml.
Reason, I want the site to open with an entry page and then forward to indexa.shtml (or whatever name)
Also I had hope to be able to use in the cgi pages like add.cgi.
It works fine on New/Cool/Ratings but not on the cgi pages. Not even when it's in the same directory as the rest of the html pages.
Am I overlooking something or is there an other way of doing this. I am a cgi newbie.


Quote Reply
Re: home.html build as indexa.shtml In reply to
$build_index is used to build the INDEX file across all folders.

What you need to do is add another variable in the links.cfg:

Code:

$build_home_index = "indexa.shtml";


Then in the sub build_home_page routine in the nph-build.cgi, replace all occurences of $build_index with $build_home_index.

Regards,

Eliot Lee