[geeklog-devel] Geeklog and 404 Errors
rouslan at placella.com
Fri Jan 4 11:14:37 EST 2013
On 01/04/2013 03:37 PM, Dirk Haun wrote:
> Tom wrote:
>> Geeklog also has a 404.php page which as far as I can tell is not used.
> You're supposed to configure your webserver to display it in case of a 404. E.g. for Apache:
> ErrorDocument 404 /404.php
>> also doesn't seem to return a 404 error code but just contains a nice
>> message to the user with a few link options. I am wondering if we should
>> ditch this page but create a lib-common function that shows something
>> similar that also includes the correct 404 header so search engines know not
>> to visit. This way we would have a constant 404 error message across the
> I can't remember the details, but the code that display the 404 page should
not itself send a 404 - I think it was because the webserver already
if configured as shown above. Check some non-existing URL on geeklog.net -
you'll see that it correctly returns a 404.
> We should obviously explain somewhere how to use the 404.php, but other than
that I don't see anything wrong with it as such.
Dirk, that's physically missing pages you're talking about (e.g:
http://geeklog.net/nonexistent.php). For logically missing pages, Tom is
right about sending the 404 header from gl
(http://geeklog.net/article.php?id=nonexistent), the webserver won't
send an error, since the page does actually exist...
More information about the geeklog-devel