Re: question about customized error

From: Date: Fri, 21 Mar 2008 14:09:24 +0000
Subject: Re: question about customized error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-271934@lists.php.net to get a copy of this message
On Thu, Mar 20, 2008 at 6:54 PM, Sudhakar <sudhakararaog@gmail.com> wrote: > if a user by mistake types the wrong url directly in the address bar ex= > www.website.com/abou.php instead of > typing www.website.com/aboutus.php instead of the browser displaying File > not found or a 404 error message i would like to display a customized page > which will still have the same look and feel of my website in terms of the > layout and i would like to > a) display a message such as = "Page could not be found" and b) the url that > the user originally typed should remain in the browser = I guess this would > be the case anyway but i was wondering if something needs to be done in > order to reatin the original address the user typed. .htaccess: ErrorDocument 404 /404.php 404.php: <?php // Whatever you want here. ?> -- </Daniel P. Brown> Forensic Services, Senior Unix Engineer 1+ (570-) 362-0283

« previous php.general (#271934) next »