The Home Page
The home page for your WebSuite server is located in the \sdweb\home directory and is displayed when someone accesses your web site without specifying a file or directory. The default file to serve up is INDEX.HTM, which can be changed through the server configuration.
The home page that is automatically provided when you first install WebSuite is a standard ASCII text file having a HTM file extension. It comes pre-configured with links to the rest of the default site. You may change the contents of the file to anything you want or replace it entirely with your own home page.
You can also replace the INDEX.HTM page with an INDEX.AP active page, which provides you with greater control of the overall environment. This is particularly useful when you are using WebSuite to provide virtual hosting for multiple domains. In that instance, you can add the following commands to the top of your home page having an AP file extension:
<[
// Get the current session object
session = new( "session", param( 1 ), param( 2 ) )
// Get the name of the host that is accessing the server
host = upper( session.data( "CLIENT_HOST" ) )
// Check for a redirected host
switch ( host )
case "INSURANCENETLIVE.COM"
case "WWW.INSURANCENETLIVE.COM"
// redirect if InsuranceNetLive request
session.redir( "insurancenetlive/index.html" )
return( 1 )
case "WESTCOASTWEBADVENTURES.COM"
case "WWW.WESTCOASTWEBADVENTURES.COM"
// redirect if WestCoastWebAdventures request
session.redir( "westcoastwebadventures/index.html" )
return( 1 )
end
]>
<html>
<!--
Insert your regular home page here. This
will only be displayed if the requesting
host is not being redirected.
-->
</html>
|
For additional information on virtual hosting, see the HOSTING section of the WebSuite documentation.
(c) 2001 by West Coast Web Adventures, Inc., All Rights Reserved
|