Re: Redirecting from unreachable page on website
| From: | Jochem Maas | Date: | Thu, 22 Jan 2009 23:57:35 +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-287036@lists.php.net to get a copy of this message | ||
Richard Heyes schreef:
>> ...
>
> 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.
if the invalid URL (which outputs a 404 header) then automatically redirects
to another URL then I think it's pretty clear that the original invalid
URL is not being shown, even grandma understands the change in the addressbar
(which is normally highlighted by a background progress-bar effect).
technically you are right, often there are reasons for doing it wrong ...
usually we refer to them as clients :-P
> By using the ErrorDocument directive like Per
> suggested, you can customise it to be distinct helpful, like this:
>
> http://www.phpguru.org/oh%20crap
>
> Using this method allows users to easily get to where they actually
> need to be, plus you can potentially promote anything of yours that
> you want to.
yeehaw promote some crap I don't want ... we don't have enough of that on
the tubes ... chocolate-covered adWord anyone? :-D