[geeklog-devel] Geeklog and 404 Errors

今駒哲子 komma at ivywe.co.jp
Fri Jan 4 11:47:01 EST 2013


Tom,

Static Page plugin display error message.
I would think a 404 should be returned in this plugin, too.

Dirk,

I want wiki document about 404.php, too.

404.php is customized in our site.
http://www.geeklog.jp/nonexistent

.htaccess (as Dirk said)
ErrorDocument 404 /404.php

Feature request:
Configuration set staticpage id (e.g. "_404") for 404 error.

--
Ivy

2013/1/5 Rouslan Placella <rouslan at placella.com>:
> 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
>>
>>
>>> It
>>> 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
>>> site.
>>
>>
>>
>> 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 does
> it,
> 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...
>
> Bye,
> Rouslan
>
>
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://eight.pairlist.net/mailman/listinfo/geeklog-devel



More information about the geeklog-devel mailing list