Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

home.htm instead of index.html

Quote Reply
home.htm instead of index.html
Our server needs a home.htm instead of index.html. Where is the command located for the filename for the pages created during the pagebuilding process?
Thanks a lot !
Jean, Budapest

------------------
Global Gay Guide Network
http://gayguide.net
Quote Reply
Re: home.htm instead of index.html In reply to
If you need to use home.htm on each directory, then you can change it in links.cfg as follows:

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

If you just need to use in on the home page and the others can still be index.html, the go to sub build_home_page in nph-build.cgi and change:

Quote:
open (HOME, ">$build_root_path/$build_index") or &cgierr ("unable to open home page: $build_root_path/$build_index. Reason: $!");

to read:

Quote:
open (HOME, ">$build_root_path/home.htm") or &cgierr ("unable to open home page: $build_root_path/home.htm. Reason: $!");

I hope this helps.

[This message has been edited by Bobsie (edited June 06, 1999).]
Quote Reply
Re: home.htm instead of index.html In reply to
Dear Bobsie :-) That's it ! Thanks so much !


------------------
Global Gay Guide Network
http://gayguide.net
Quote Reply
Re: home.htm instead of index.html In reply to
Hi,

I have the same problem only it was working before now and then it stopped working.
It was creating the home.html page and everything was fine (I hadn't edited this at all) and then it started creating it at index.html (this is for only the main homepage the others are working).

So, I found this thread and I wanted to put it back to pointing to home.html so I made these changes as suggested in the build cgi file and it's still building the homepage to index.html rather than home.html.

I have loaded the build.cgi file to my server as a text file so taht you can take a look at it at www.spiltmilk.net/nph-build.txt

Any help that could be offered at this stage would be greatly appreciated.

Thanks
Kylie


------------------
info@spiltmilk.net
Quote Reply
Re: home.htm instead of index.html In reply to
Sorry, I forgot to give you the admin URL
Here it is http://www.spiltmilk.net/cgi-bin/sm/content/admin/admin.cgi

Kylie
Quote Reply
Re: home.htm instead of index.html In reply to
Dear Kylie :-)

it's not the nph-build.cgi where you have to make changes, but the 'links.cfg'
E.g.:

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

very best!
Jean



------------------
Global Gay Guide Network
http://gayguide.net