Forum Moderators: coopster

Message Too Old, No Replies

php / apache issue

parsing .htm as PHP, 404's returning 500's

         

brotherhood of LAN

7:10 pm on Jan 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No access to http.conf, so in a .htaccess file I set PHP to parse HTML files, files ending in .htm

Apache is set to include missing.html for any 404 pages, though it seems to be returning 500 errors for .htm pages.

site.com/notapage.html returns 404
site.com/notapage.php returns 404
site.com/notapage.htm returns 500

The westhost tech says that it's due to the fact PHP is directed to parse .htm files in .htaccess. How would I prevent a .htm file extension from returning a 500 status?

brotherhood of LAN

8:55 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Well, it appears to be a specific problem to westhost 1.0, if anyone else has this problem, it's not your sloppy code ;)

jatar_k

9:02 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



reassuring I guess ;)