By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,939 Members | 1,638 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,939 IT Pros & Developers. It's quick & easy.

Index.html not being detected ???

P: n/a
Rob
I'm sure this must be something incredibly simple but I just can't see
what the problem is.

I have some webspace which is accessed along the following lines

http://site.address.com/subdir/

but instead of my browser (either Firefox or IE) picking up the
index.html file and displaying it I just get a list of all the files in
that subdirectory which of course includes the file index.html. Any
idea what the problem might be ?

Jul 23 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Rob <ro*@html.com> wrote:
I have some webspace which is accessed along the following lines

http://site.address.com/subdir/

but instead of my browser (either Firefox or IE) picking up the
index.html file and displaying it I just get a list of all the files in
that subdirectory which of course includes the file index.html. Any
idea what the problem might be ?


It isn't the browser that requests index.html when a URL maps to a
directory on the server. It is the server that sends index.html (or some
other file) when the URL maps to a directory on the server.

Apparently, your server is not configured to send index.html in such
situations. It may be configured to send some other file (e.g, index.htm,
default.html, home.html). Check your server configuration to see what the
filename is, and make sure your index file matches that filename exactly
(including capitalization).
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Experience is what allows you to recognize a mistake when you make it again."
Jul 23 '05 #2

P: n/a
Rob wrote:
but instead of my browser (either Firefox or IE) picking up the
index.html file and displaying
The browser just makes a request for /subdir/, its up to the server what it
returns.
it I just get a list of all the files in
that subdirectory which of course includes the file index.html. Any
idea what the problem might be ?


Either you have misspelt the name (which is usually case sensitive - so
Index.html might not work when index.html would), or the server is
configured oddly.

Either way, its a server configuration issue rather then an HTML authoring
one.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #3

P: n/a
Rob
On Mon, 14 Feb 2005 19:31:16 +0000 (UTC), Darin McGrew
<mc****@stanfordalumni.org> wrote:
Rob <ro*@html.com> wrote:
I have some webspace which is accessed along the following lines

http://site.address.com/subdir/

but instead of my browser (either Firefox or IE) picking up the
index.html file and displaying it I just get a list of all the files in
that subdirectory which of course includes the file index.html. Any
idea what the problem might be ?


It isn't the browser that requests index.html when a URL maps to a
directory on the server. It is the server that sends index.html (or some
other file) when the URL maps to a directory on the server.

Apparently, your server is not configured to send index.html in such
situations. It may be configured to send some other file (e.g, index.htm,
default.html, home.html). Check your server configuration to see what the
filename is, and make sure your index file matches that filename exactly
(including capitalization).


Thanks for your message. I also tried having an index.html file in the
root web folder, i.e. http://site.address.com/ and that works fine.
The webspace is not on my own pc but on a commercial server so I'm not
actually sure where to find this information using their cpanel
interface.

Jul 23 '05 #4

P: n/a
Rob wrote:
The webspace is not on my own pc but on a commercial server so I'm not
actually sure where to find this information using their cpanel
interface.


If its commercial then you should get technical support from the host. Ask
them. :)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #5

P: n/a
Rob
On Mon, 14 Feb 2005 19:32:47 +0000, David Dorward <do*****@yahoo.com>
wrote:
Rob wrote:
but instead of my browser (either Firefox or IE) picking up the
index.html file and displaying


The browser just makes a request for /subdir/, its up to the server what it
returns.
it I just get a list of all the files in
that subdirectory which of course includes the file index.html. Any
idea what the problem might be ?


Either you have misspelt the name (which is usually case sensitive - so
Index.html might not work when index.html would), or the server is
configured oddly.

Either way, its a server configuration issue rather then an HTML authoring
one.


OK, thanks for pointing that out, I had wrongly assumed it was being
handled by the browser. It must be something to do with an existing
file in the subdirectory as I have just created a test subdir as
http://server.address.com/test/ and the index.html file is being
returned as expected from there.

Jul 23 '05 #6

P: n/a
Dan

Rob wrote:
OK, thanks for pointing that out, I had wrongly assumed it was being
handled by the browser. It must be something to do with an existing
file in the subdirectory as I have just created a test subdir as
http://server.address.com/test/ and the index.html file is being
returned as expected from there.


If there's a ".htaccess" file in that directory, maybe it modifies the
index filenames from the server defaults.

--
Dan

Jul 23 '05 #7

P: n/a
Rob
On 14 Feb 2005 12:31:14 -0800, "Dan" <da*@tobias.name> wrote:

Rob wrote:
OK, thanks for pointing that out, I had wrongly assumed it was being
handled by the browser. It must be something to do with an existing
file in the subdirectory as I have just created a test subdir as
http://server.address.com/test/ and the index.html file is being
returned as expected from there.


If there's a ".htaccess" file in that directory, maybe it modifies the
index filenames from the server defaults.


Thanks for your message, Dan. You were absolutely right, I hadn't
noticed that the install procedure of the application I'm using had
created an .htaccess file and sure enough it does modify the index
filenames.
Jul 23 '05 #8

P: n/a
Rob wrote:
On 14 Feb 2005 12:31:14 -0800, "Dan" <da*@tobias.name> wrote:
Rob wrote:
OK, thanks for pointing that out, I had wrongly assumed it was being
handled by the browser. It must be something to do with an existing
file in the subdirectory as I have just created a test subdir as
http://server.address.com/test/ and the index.html file is being
returned as expected from there.
If there's a ".htaccess" file in that directory, maybe it modifies the
index filenames from the server defaults.

Thanks for your message, Dan. You were absolutely right, I hadn't
noticed that the install procedure of the application I'm using had
created an .htaccess file and sure enough it does modify the index
filenames.


HTML editors stealthily create .htaccess files?

--
Blinky Linux Registered User 297263

Who has implemented Usenet Solution #45933:
Now killing all posts made from Google Groups
Jul 23 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.