cancel
Showing results for 
Search instead for 
Did you mean: 

index.shtml

paulcobb
Grafter
Posts: 144
Registered: 30-07-2007

index.shtml

I was under the impression that on the web server (ftp.plus.net) that if there is an index file with a suffix of .htm  .html  .shtml etc that it would load.
If I switch my index to .shtml the file will not load (just a directory listing on the server).
Suggestions please would be welcome!

Edit:  I have a .htaccess file currently to allow includes for the .shtml pages
AddType text/html .shtml
AddHandler server-parsed .shtml

Paul
11 REPLIES
Community Veteran
Posts: 1,576
Thanks: 3
Registered: 13-04-2007

Re: index.shtml

it depend whats set on the server. as far as I know the priority is html then htm so if you have index.html and index.htm the html one will load
paulcobb
Grafter
Posts: 144
Registered: 30-07-2007

Re: index.shtml

Yes I realise that file types for the index page have a progression, but I want clarification on why the .shtml will not load.
Community Veteran
Posts: 26,718
Thanks: 931
Fixes: 10
Registered: 10-04-2007

Re: index.shtml

Don't you have to tell Apache what default pages to look for? Is that something that can be put in htaccess?
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£13/month)
Mobile: iD mobile (£4/month)
paulcobb
Grafter
Posts: 144
Registered: 30-07-2007

Re: index.shtml

You may be right!
I was hoping some kind soul would post the code for me !
paulcobb
Grafter
Posts: 144
Registered: 30-07-2007

Re: index.shtml

After a little searching I have added:
DirectoryIndex index.shtml index.htm
to the .htaccess file
I'm not sure though why .shtml seems not to be valid by default.
Have the apache settings been altered in the recent past  - as historic posts seem to suggest that it should work
Community Veteran
Posts: 14,469
Registered: 30-07-2007

Re: index.shtml

I always thought .shtml was supported on the homepages server as standard but was an issue with the old CGI server which was fixed on the current CCGI server.
Community Veteran
Posts: 1,576
Thanks: 3
Registered: 13-04-2007

Re: index.shtml

Why are we having this conversation why cant you just use index.htm or html?
Community Veteran
Posts: 26,718
Thanks: 931
Fixes: 10
Registered: 10-04-2007

Re: index.shtml

He wants to use server side includes on his main index page?
jelv (a.k.a Spoon Whittler)
   Why I have left Plusnet (warning: long post!)   
Broadband: Andrews & Arnold Home::1 (FTTC 80/20)
Line rental: Pulse 8 Home Line Rental (£13/month)
Mobile: iD mobile (£4/month)
paulcobb
Grafter
Posts: 144
Registered: 30-07-2007

Re: index.shtml

That's right I do!
It's all working fine now though after the changes to the .htaccess file
ffupi
Grafter
Posts: 370
Registered: 01-08-2007

Re: index.shtml

Hello
Does this mean on ccgi is https:// possible??  Huh
This would allow a secure log-in to the admin area of my cms.
Many thanks for an update
Superuser
Superuser
Posts: 2,883
Thanks: 576
Fixes: 5
Registered: 06-04-2007

Re: index.shtml

Nope.  It just means he can use Server Side Include (SSI) directives on his page.
Phil