Don't know why you want to do this, unless your server has been configured to use main.html as the default page in directories.
But to change the homepage from index.html to main.html, all you have to do is the following:
1) Add the following variable to your
links.cfg file near the
$build_index variable:
Code:
$build_home = "main.html";
2) Then in your
nph-build.cgi, replace the following codes:
Code:
print qq|Building <A HREF="$build_root_url/$build_index">Home Pages</A>
. . .\n| :
under
Creating Home Page in the
sub build_all routine to the following:
Code:
print qq|Building <A HREF="$build_root_url/$build_home">Home Pages</A>
. . .\n| :
3) Then replace the following line of codes in the
sub build_home_page routine in the
nph-build.cgi script:
Code:
print "\tOpening page: $build_root_path/$build_index\n";
with the following:
Code:
print "\tOpening page: $build_root_path/$build_home\n";
4) In the same sub-routine, replace the following line of codes:
Code:
open (HOME, ">$build_root_path/$build_index") or &cgierr ("unable to open ho
me page: $build_root_path/$build_index. Reason: $!");
with the following codes:
Code:
open (HOME, ">$build_root_path/$build_home") or &cgierr ("unable to open ho
me page: $build_root_path/$build_home.
Reason: $!");
That should do it.
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums