Gossamer Forum
Home : Products : Links 2.0 : Customization :

Can can I make home.html build to index.shtml?

Quote Reply
Can can I make home.html build to index.shtml?
I am using templates in my script. I need to put some SSI within my index.html page, although my server needs the .shtml to run it. How would I go about modifiying it to spit out index.shtml?

AtDhVaAnNkCsE

Neeper!
Quote Reply
Re: Can can I make home.html build to index.shtml? In reply to
Just change in links.cfg

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

to:

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

Now all files will have the endings .shtml if you just want to have all the index files with .shtml-endings, just leave $build_extension how it is...
Quote Reply
Re: Can can I make home.html build to index.shtml? In reply to
I understand the option of changing the extension on "all" index pages by modifying the config file ... but what if one only needs the Home_Page (literally) to have an extension of .shtml? Can the modification be done under the build_home_page routine in nph-build?

Thanks -
Quote Reply
Re: Can can I make home.html build to index.shtml? In reply to
Nope...Not without a lot of code hacking.

BTW: To allow SSI calls on .html files, go to apache.org and find out how to edit your ROOT .htaccess file to allow SSI calls in these files.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------