Forum Moderators: phranque

Message Too Old, No Replies

How do I...

point to .shtml

         

Acternaweb

3:18 pm on Jan 2, 2004 (gmt 0)

10+ Year Member



How do I set up the site so it looks for index.shtml instead of index.html. Prefer not to use a redirect.

Thanks,

thehittmann

4:03 pm on Jan 2, 2004 (gmt 0)

10+ Year Member



Many people point their browsers to a directory, and their home page is kept in a file called index.html. If you planned to use, or have been using, an index.html then you may replace that with a index.shtml file, if you need the features of SSI on your home page. When the web server is sent to a directory (instead of a file), it first checks for an index.html file, and if it doesn't find one then it looks for the index.shtml file. So, be sure to remove (or rename) the index.html file from your direct ory if you want the web server to use the index.shtml file as your home page.

RedWolf

6:14 pm on Jan 3, 2004 (gmt 0)

10+ Year Member



The other option if you are on Apache is to create a .htacess file with this line:

AddType text/x-server-parsed-html .html

That will cause all requests for files with the .html extension to be parsed for SSI by default so that you won't have to name the file .shtml

robert adams

9:01 pm on Jan 3, 2004 (gmt 0)

10+ Year Member



How do I set up the site so it looks for index.shtml instead of index.html. Prefer not to use a redirect.

Thanks,


just get rid of the index.html file and replace it with the index.shtml file. that is all you need to do. if their is no other index file in the directory, the shtml file will be default.

luck
robert

anallawalla

2:24 am on Jan 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



just get rid of the index.html file and replace it with the index.shtml file. that is all you need to do. if their is no other index file in the directory, the shtml file will be default.

That is entirely dependent on the way the server was set up. If that does not work, then try some of the other methods suggested above and finally ask the web host.

robert adams

6:24 am on Jan 4, 2004 (gmt 0)

10+ Year Member



That is entirely dependent on the way the server was set up.

That is true, I was not thinking of the few servers that might not be set up for SSI. Everyone I have hosted with in the last few years has this enabled, so I assume; you know what that does.

robert