cancel
Showing results for 
Search instead for 
Did you mean: 

index.shtml

paulcobb
Grafter
Posts: 146
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 11
samuria
Grafter
Posts: 1,581
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: 146
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.
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
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 (£14.40/month)
Mobile: iD mobile (£4/month)
paulcobb
Grafter
Posts: 146
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: 146
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
Peter_Vaughan
Grafter
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.
samuria
Grafter
Posts: 1,581
Thanks: 3
Registered: ‎13-04-2007

Re: index.shtml

Why are we having this conversation why cant you just use index.htm or html?
jelv
Seasoned Hero
Posts: 26,785
Thanks: 971
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 (£14.40/month)
Mobile: iD mobile (£4/month)
paulcobb
Grafter
Posts: 146
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
pjmarsh
Superuser
Superuser
Posts: 4,030
Thanks: 1,575
Fixes: 20
Registered: ‎06-04-2007

Re: index.shtml

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

Superusers are not staff, but they do have a direct line of communication into the business in order to raise issues, concerns and feedback from the community.