Forum Moderators: phranque

Message Too Old, No Replies

Internet Server 500 errors

         

classifieds

10:45 am on Apr 4, 2006 (gmt 0)

10+ Year Member



I'm getting ready to roll out a new site (all static HTML) but all references to non-existant URLs return a 500 server error instead of a 404.

Is this an .htaccess or apache config issue?

Here's my .htaccess

DirectoryIndex index.html
ErrorDocument 403 /blocked/not-allowed.html
ErrorDocument 404 /page-not-found.html

jdMorgan

2:38 pm on Apr 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nothing obvious in your .htaccess code...

What's in your server error log when you get a 500 Server Error?

Does /page-not-found.html exist, and is it truly a static page? If not, look at the script used to generate it.

What happens if you directly request http://www.example.com/page-not-found.html ?

Is the use of ErrorDocument allowed on your server? The setting of AllowOverride [httpd.apache.org] FileInfo affects this.

Jim