Re: Redirecting from unreachable page on website
| From: | Richard Heyes | Date: | Thu, 22 Jan 2009 09:01:00 +0000 |
| Subject: | Re: Redirecting from unreachable page on website | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286990@lists.php.net to get a copy of this message | ||
> ...
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, 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.
--
Richard Heyes
HTML5 Graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated January 17th)