RE: [PHP] OT 404 Error Page
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | RE: [PHP] OT 404 Error Page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-26799@lists.php.net to get a copy of this message | ||
We have been doing this on php.net for a long time now. Try typing in a
bogus www.php.net url. Like www.php.net/bogus
I believe that is exactly what you are looking to do. The source for the
page is of course in CVS and you can see it at:
http://cvs.php.net/viewcvs.cgi/phpweb/error/index.php?rev=1.6&content-type=text/vnd.viewcvs-markup
-Rasmus
On Wed, 22 Nov 2000, Mark Peoples wrote:
> I'm about to work on something similar to this, here's the jist of it.
>
> Using HTDig, and a document along the lines of 404.php3, whenever someone
> gets a 404, instead, the 404.php3 fires up a search query for HTDig, then
> displays the results. Hopefully, the results are relevant. <g>
>
> marco
>
> -----Original Message-----
> From: Sefton [mailto:c.sefton@xtra.co.nz]
> Sent: Wednesday, November 22, 2000 6:54 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] OT 404 Error Page
>
>
> I have done this on a few sites that I have made.
> Of course the server has been Apache.
>
> This only works with Apache but it works really well, and it doesn't have
> anything to do with PHP but what the hell.
>
> In the root directory of your site, (www/htdocs/) or whatever...
> upload a plain text file called htaccess.txt with the following line of
> information.
>
> ErrorDocument 404 http://www.yourdomain.com/error404.html
>
> Make sure to create a html file called error404.html and save it to the same
> dir as the htaccess.txt file.
>
> Using your FTp program WS_FTP or whatever, while looking at the dir of your
> website, rename the htaccess.txt file to read .htaccess
>
> That is htaccess with a period "." in front of it. This hides the file, and
> makes it mean something to the server.
> There is a problem with IE however, and that IE4 or higher will still use
> its own 404 pages.
> You can overcome this by creating your 404 page larger than 512k. Just add a
> graphic, logo or something. IE then realises that there must be a new 404
> file and uses your one.
>
> Thats it, type in a bogus URL at your domain and walla, your new custom
> error404.html file will be displayed.
>
> Need to know more about it feel free to email.
>
> Regards,
>
> Chris Sefton
> c.sefton@xtra.co.nz
>
>
> <Website4S@aol.com> wrote in message
> news:58.3aed58c.274d9de7@aol.com...
> > Hi,
> >
> > This is completely OT and I apologise for that, I have tried search
> engines
> > all over the place and can`t find any decent information, so as this is
> the
> > only list I subscribe to I thought maybe one of you might know. Basically
> I
> > am looking for information on customising my own 404 error page, what
> server
> > priveledges would I need etc,
> >
> > Anyone with any info it would be very much appreciated.
> >
> > Thanks
> >
> > Ade
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>