Re: Redirecting from unreachable page on website
| From: | Per Jessen | Date: | Thu, 22 Jan 2009 11:36:04 +0000 |
| Subject: | Re: Redirecting from unreachable page on website | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286992@lists.php.net to get a copy of this message | ||
Richard Heyes wrote:
>> ...
>
> Really, for URLs that don't exist you should be showing a 404, This
> way the user doesn't falsely believe that the URL is a valid one and
> keep using it. By using the ErrorDocument directive like Per
> suggested, you can customise it to be distinct helpful
Apache also comes with a good example of how to cobble that with content
negotiation to present error documents in the users preferred language.
/Per Jessen, Zürich