index.html not enough?

They have: 3 posts

Joined: Jan 2004

my website is allmost done, just putting the finishing touches on it. I went to a university computer lab to troubleshoot and found a puzzling problem. at home on my computer and on every other machine i have tried thus far, all i need do is type the url into the browser window http://www.myurl.com, end of story. but on these machines ( and so probably many others ) typing in my url alone prompted an error message saying that the browser could not handle the file type (the file type being, html. ? ) but when i typed in http://www.myurl.com/index.html, then it works. is there a piece of code or backend organization that i am missing. Sad

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

provide the url please

also, which browsers/operating systems, please

does http://www.myurl.com/ with the slash work?

They have: 3 posts

Joined: Jan 2004

larossastudios.com
osx explorer 5.2.2

thank you

They have: 3 posts

Joined: Jan 2004

thing is osx explorer 5.2.2 works fine everywhere else i'v tried it?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

That operating systems doesn't it work on? And browsers? It's only OSX/IE that's the problem?

I have it up without error on OSX/IE and OSX/Safari, both Jaguar.

You could try a fix:

In your .htaccess file, write this:

DirectoryIndex index.html

That should adjust any browser that's seeking a different url?

mjs416's picture

They have: 127 posts

Joined: Dec 2003

Suzanne wrote: That operating systems doesn't it work on? And browsers? It's only OSX/IE that's the problem?

I have it up without error on OSX/IE and OSX/Safari, both Jaguar.

You could try a fix:

In your .htaccess file, write this:

DirectoryIndex index.html

That should adjust any browser that's seeking a different url?

I had asked a similar problem a while back. What suzanne suggested will work.

They have: 30 posts

Joined: Aug 2003

you can also try other common names:

index.htm
index.php
default.html
default.htm

but as i can see right now your site is working fine. you even got some pop-ups there. thanks! lol Smiling

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

antoshka wrote: you can also try other common names:

index.htm
index.php
default.html
default.htm

If you're editing the httpd.conf, these are important to add. Also home.html, home.htm as other common index files.

However, it wouldn't make sense to add those to an .htaccess file's DirectoryIndex instruction when we have a single known index page, as we only want to point people to that one particular page, we're not trying to cover all the bases just in case we want to add a differently named index file.

taff's picture

They have: 956 posts

Joined: Jun 2001

For what it's worth, you have a block of script outside of your header block. It's doubtful that this is relevant but you never know - valid code is always a good place to start when troubleshooting.

.....

amrod's picture

They have: 26 posts

Joined: Jan 2004

it works on mozilla firebird in windows xp

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.