Connecting Tech Pros Worldwide Help | Site Map

Custom Error Message Pages

  #1  
Old March 7th, 2006, 02:55 PM
Christopher Pettet
Guest
 
Posts: n/a
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, 10:25 PM
Iván Sánchez Ortega
Guest
 
Posts: n/a

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, 11:25 PM
Christopher Pettet
Guest
 
Posts: n/a

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]


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Error Pages JJ answers 2 January 18th, 2007 08:55 PM
Custom Error Pages Rhys666 answers 0 November 19th, 2005 08:32 AM
Custom error web pages problem CoreyMas answers 3 July 21st, 2005 10:55 PM
404 versus custom error page? sinister answers 14 July 20th, 2005 05:59 PM