PDA

View Full Version : Index.html/shtml


Dummy
11-10-01, 09:19 PM
I replaced my index.html file with .shtml and it apeared to start a whole new page displaying my directory on the net. I can't delete this file or modify it in any mode ansii etc. but I did finally get another index.html to take presadence over the shtml. also I can make two shtml file's called index.shtml kinda strange to me one I can delete or modafy the other nope I get a file doesn't exist. but the file apears every time I return day after day. How do I get read of this pest?

Another question here how the heck do I set my file parematers?

Thank's and Good day

The Dummy

Twevster
11-11-01, 05:23 AM
About the files appearing to exist and actually not existing I had the same problem.. it went away after a day or two (the page might have been cached). Do you see the file re-appearing through your ftp program or through the listing in your browser?

Your index.html take presedence over your index.shtml because it is set to. You can change this however (so it looks for whatever file you want to view first). You saw a directory listing because there was no index.html and the server didn't know what page to view by default.

To change it from index.html to index.shtml upload a plain text file (in notepad) in ASCII mode called ".htaccess" in your htdocs directory with the following in it...
---------START .htaccess-----------

DirectoryIndex index.html index.pl index.html index.htm index.cgi

---------END .htaccess--------------
Where the filename with most presedence is towards the left (first in order)

Twevster

Dummy
11-11-01, 05:56 PM
Thank's I'll have to play with that sounds like it could be handy.
I'll give it a few more day's. I may have to wait for a reboot on mercury before it will go away.

Thanks!!! :)

The Dummy

Twevster
11-13-01, 12:40 PM
no worries, let me know how it goes