Archive for the Internet Category

There are lots of different reasons why a script would generate a 500 error… but there’s no good reason at ALL whey a regular HTML page would. Why? Because HTML is not script. It is not executable. It does not “run” on a server, and should therefore not generate Internal Server Errors.

But I’ve seen it happen.

The Problem:
Whenever I tried to access an HTML file on one of my sites, I got a 500-Internal Server Error instead.

Some more detail is required to understand the nature of the problem. On the site in question, ALL of the pages have a .PHP extension. There was one page with a .HTM extension, and I had just added one that happened to have a .HTML extension. That page was the one that threw the error when I tried to load it. I found that kind of odd, given the fact that HTML != SCRIPT. It was also odd because the PHP and .HTM pages loaded fine… it was specifically the HTML page and that page ONLY that was giving me problem. So I changed the page’s extension to .HTM and reloaded it. Guess what? It worked fine.

I could have left it that way, but no… I had to get to the bottom of this madness.
(more…)

Popularity: 6% [?]