Connecting Tech Pros Worldwide Help | Site Map

Custom Error Message Pages

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 7th, 2006, 01:55 PM
Christopher Pettet
Guest
 
Posts: n/a
Default Custom Error Message Pages

I am having an issue with php and IIS6 in that I want a custom error page to
display when a page isn't found (error 404). If I do a test and enter
anything ending with .php it returns the "default", bog standard IE / IIS
error page. All other instances (.gif, .htm, <foldername> etc) route to the
custom error page.

What I need to know is where do I tell php the location of the custom error
page to ensure it displays the custom 404 page rather than the default one?

Any help appreciated

Chris



  #2  
Old March 7th, 2006, 09:25 PM
Iván Sánchez Ortega
Guest
 
Posts: n/a
Default Re: Custom Error Message Pages

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christopher Pettet wrote:
[color=blue]
> What I need to know is where do I tell php the location of the custom
> error page to ensure it displays the custom 404 page rather than the
> default one?[/color]

PHP does not care about custom error page locations: webservers do. Please
re-read the documentation for Apache, boa, IIS, or whatever webserver you
are running.

- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

http://acm.asoc.fi.upm.es/~mr/
Proudly running Debian Linux with 2.6.12-1-686 kernel, KDE3.5.0, and PHP
5.1.2-1 generating this signature.
Uptime: 22:46:55 up 1:22, 1 user, load average: 1.16, 0.80, 0.64

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEDf+r3jcQ2mg3Pc8RAgdTAJ9egT7XZ2jDQBHDjE7m1r 2P8VaumQCfXBeD
BYUJylZRwJJTJGrgqWAHLI8=
=EQNq
-----END PGP SIGNATURE-----
  #3  
Old March 11th, 2006, 10:25 PM
Christopher Pettet
Guest
 
Posts: n/a
Default Re: Custom Error Message Pages

Can you please explain why it works for everything EXCEPT .php extensions?

Try these three links and you'll see what I mean...

http://mydvds.psiss.com/fred.htm <- works fine
http://mydvds.psiss.com/fred.php <- displays the default 404
http://mydvds.psiss.com/fred.asp <- works fine


"Iván Sánchez Ortega" <i.punto.sanchez--@rroba--mirame.punto.net> wrote in
message news:nmb1e3-6vj.ln1@blackspark.escomposlinux.org...[color=blue]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Christopher Pettet wrote:
>[color=green]
>> What I need to know is where do I tell php the location of the custom
>> error page to ensure it displays the custom 404 page rather than the
>> default one?[/color]
>
> PHP does not care about custom error page locations: webservers do. Please
> re-read the documentation for Apache, boa, IIS, or whatever webserver you
> are running.
>
> - --
> - ----------------------------------
> Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
>
> http://acm.asoc.fi.upm.es/~mr/
> Proudly running Debian Linux with 2.6.12-1-686 kernel, KDE3.5.0, and PHP
> 5.1.2-1 generating this signature.
> Uptime: 22:46:55 up 1:22, 1 user, load average: 1.16, 0.80, 0.64
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFEDf+r3jcQ2mg3Pc8RAgdTAJ9egT7XZ2jDQBHDjE7m1r 2P8VaumQCfXBeD
> BYUJylZRwJJTJGrgqWAHLI8=
> =EQNq
> -----END PGP SIGNATURE-----[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.