Re: php function on php.net
| From: | Ivo Fokkema | Date: | Thu, 24 Jul 2003 11:26:44 +0000 |
| Subject: | Re: php function on php.net | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156630@lists.php.net to get a copy of this message | ||
> > Use a path relative to your httpdocs for your error document, e.g.
> > ErrorDocument 404 /myerrorpage.php
> > instead of
> > ErrorDocument 404 http://mysite/myerrorpage.php
> Unfortunatelly this is not what I mean.
I think it is. When you use a relative path in the .htaccess, the URL will
not change, but you will be redirected. Therefor you can use
$_SERVER['REQUEST_URI'] in your 404-page to check what the visitor was
looking for.
HTH,
--
Ivo Fokkema
PHP & MySQL programmer
Leiden University Medical Centre
Netherlands