Re: php function on php.net

From: Date: Thu, 24 Jul 2003 14:03:49 +0000
Subject: Re: php function on php.net
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-156641@lists.php.net to get a copy of this message
* Thus wrote Ivo Fokkema (I.F.A.C.Fokkema@LUMC.nl): > > > 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. with ErrorDocument 404 /myerropage.php The url wont change if the 404 doesn't do any redirection. I've never tried a 404 to an external page, I don't think its possible (too lazy to look at apache's docs atm). cheers Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#156641) next »