Forum Moderators: open
I have uploaded a few html files with no .htm extension - they are working fine in IE, but when I used Netscape to check them it opens the pages up as plain text files.
I have looked at other websites which also do not include the .htm extensions in the URL and they seem to work fine in both IE and Netscape.
Any help is very much appreciated.
Cheers,
JonnyBoy
The default mime type (on most servers) is text/plain. This means that if the file extension is unknown (or, in this case, omitted) it will be served as plain text... and that's what Netscape is picky about.
The Golden Rule... ALWAYS test your site in Netscape or Mozilla first! They will let you know (in a visual way! ^_^) if there's some sort of error somewhere. Many people test their site and get it working in IE first, and then test it in Netscape a few weeks later as an afterthough. I could write my HTML like this and chances are it would still work in IE:
>html<
>head<
>title<My Website>/title<
>/head<
>body<
...
It would most definately NOT work in Netscape. It's really anoying how IE is so forgiving of errors, and that's why we have the myth about websites being "best viewed in Internet Explorer."