Computing.Net > Forums > Web Development > ssi and index

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ssi and index

Reply to Message Icon

Name: gontofe
Date: February 26, 2006 at 04:11:18 Pacific
OS: win xp sp2/ Ubuntu Breezy
CPU/Ram: 2.79gHz celeron 448mb RA
Product: Compaq Presario 2541
Comment:

Hello all,

I am trying to update my website using ssi to replace a frameset. If I want to use ssi in my index page, how can I do this? index.shtml is not recognized automatically, firefox puts me into "index of /"...



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: February 26, 2006 at 09:21:06 Pacific
Reply:

That is a server setting. When you specify just the domain or just a directory, the server will check for the existence of a list of index pages. If none is found, then the server may default to showing the contents of the directory - again a server setting. You will need to modify the list of possible index pages that the server will look for to include index.shtml

Michael J


0

Response Number 2
Name: gontofe
Date: February 27, 2006 at 02:53:09 Pacific
Reply:

Thanks Michael,

One problem - as I'm not hosting the content myself I cannot change the server settings - I would therefore need to create index.html and do some sort of auto forwarding to index.shtml. How do I do this?


0

Response Number 3
Name: Michael J (by mjdamato)
Date: February 27, 2006 at 06:45:47 Pacific
Reply:

Include this tag in the head of your index.htm page:

<meta http-equiv="refresh" content="2;url=http://MyDomain.com/index.shtml">

The number 2 represents the number of seconds before the page is redirected to the new page. The url= value is the page to redirect to.

I don't know if you can set the value to 0, so it may be shomewhat of a cumbersome workaround. Instead I would create an index.htm page that is just an entry page to the site, then create a home.htm page for the actual home page.

Michael J


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: ssi and index

SSIs can't read/write subdirectory www.computing.net/answers/webdevel/ssis-cant-readwrite-subdirectory/2001.html

PHP and using sessions www.computing.net/answers/webdevel/php-and-using-sessions/2527.html

Appearing on search engines www.computing.net/answers/webdevel/appearing-on-search-engines/2812.html