file extensions

A

Allen

I'm in the process of redesigning a website . . . I'm using server
side includes for the page -- the problem is, the server will not
automatically load an index page with a .shtml extension -- it will
with .html and .htm -- but not .shtml. Anybody know what, on the
server, I need to change to fix this behavior?

Thanks . . .
 
D

David Dorward

Allen said:
I'm in the process of redesigning a website . . . I'm using server
side includes for the page -- the problem is, the server will not
automatically load an index page with a .shtml extension -- it will
with .html and .htm -- but not .shtml. Anybody know what, on the
server, I need to change to fix this behavior?

That depends on the server software you are runing. Assuming you are using
the latest version of the industry standard...

http://httpd.apache.org/docs-2.1/en/mod/mod_dir.html#directoryindex
 
H

Hywel Jenkins

crepe2 said:
I'm in the process of redesigning a website . . . I'm using server
side includes for the page -- the problem is, the server will not
automatically load an index page with a .shtml extension -- it will
with .html and .htm -- but not .shtml. Anybody know what, on the
server, I need to change to fix this behavior?

What type of server? If it's Apache, look for DirectoryIndex. You
could also do this at a directory level using .htaccess.

If it's IIS, look in the web manager thingy for the default document.
 
A

Allen

Hello Hywel,

Thursday, October 2, 2003, 12:42:10 PM, you wrote:


HJ> What type of server? If it's Apache, look for DirectoryIndex. You
HJ> could also do this at a directory level using .htaccess.

I cannot find a "DirectoryIndex" or any thing of the sort, all I've
got are .htaccess files. I have no web interface for account
administration, so I have to do it all from the ftp side.

I managed to prioritize *.shtml using .htaccess, per the link in
David's message . . . that will suffice, for now, but I'd better do
some reading up on all this. I can't telnet to the server, so how
might I tell for sure what I'm running on?

The last guy working on it used front page, which seems to have put
proprietary .htaccess files in each directory that I need to
unFrontpage, as well.

Thanks a lot for the quick response . . .
 
H

Hywel Jenkins

crepe2 said:
Hello Hywel,

Thursday, October 2, 2003, 12:42:10 PM, you wrote:



HJ> What type of server? If it's Apache, look for DirectoryIndex. You
HJ> could also do this at a directory level using .htaccess.

I cannot find a "DirectoryIndex" or any thing of the sort, all I've
got are .htaccess files. I have no web interface for account
administration, so I have to do it all from the ftp side.

I managed to prioritize *.shtml using .htaccess, per the link in
David's message . . . that will suffice, for now, but I'd better do
some reading up on all this. I can't telnet to the server, so how
might I tell for sure what I'm running on?

If .htaccess works it's probably Apache. Go to
http://www.sambar.com/wwwping and type in the domain you need to check.

The last guy working on it used front page, which seems to have put
proprietary .htaccess files in each directory that I need to
unFrontpage, as well.

Enjoy :(.
 
B

Ben Dover - Mental Patient 0057

Allen said:
Hello Hywel,

Thursday, October 2, 2003, 12:42:10 PM, you wrote:
............

I cannot find a "DirectoryIndex" or any thing of the sort, all I've
got are .htaccess files. I have no web interface for account
administration, so I have to do it all from the ftp side.

i think he's talking about "DirectoryIndex", a section inside a file in
/etc/apache/httpd.conf
or
/etc/httpd/httpd.conf

but you can put a DirectoryIndex section in
..htaccess file also.

<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.cgi index.shtml
index.helloworld index.allen
</IfModule>
you know the drill.

.......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,575
Members
47,207
Latest member
HelenaCani

Latest Threads

Top