Improved 404 Error Handling
This log details design and functional changes to the website and its underlying CMS. Use this forum to report site errors, request new features or suggest changes.
This is an open, public forum. It is unmoderated and uncensored. Keep it that way by respecting others. You can participate in this forum anonymously and without registration, although you are invited to register to enjoy additional facilities. Please review the terms and conditions of usage before posting.
Topic: Improved 404 Error Handling | ||
I have removed 404 error handling from the CMS. When content was requested from the database, the CMS would generate a 404 error message if the requested records didn’t exist but the 404 page would be delivered with a “200” status code (despite my own rant about this). I have written a couple of Apache handlers that intercept the request phase, check the database for the existence of the requested record(s) then either generate a proper 404 (record doesn’t exist) or pass control back to Apache (record does exist). Should look a little better to the search engines now - as well as making my access logs a little more accurate! :-) |