Custom Error Message Pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christopher Pettet

    #1

    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


  • Iván Sánchez Ortega

    #2
    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


    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+r3jc Q2mg3Pc8RAgdTAJ 9egT7XZ2jDQBHDj E7m1r2P8VaumQCf XBeD
    BYUJylZRwJJTJGr gqWAHLI8=
    =EQNq
    -----END PGP SIGNATURE-----

    Comment

    • Christopher Pettet

      #3
      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.sanche z--@rroba--mirame.punto.ne t> wrote in
      message news:nmb1e3-6vj.ln1@blacksp ark.escomposlin ux.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+r3jc Q2mg3Pc8RAgdTAJ 9egT7XZ2jDQBHDj E7m1r2P8VaumQCf XBeD
      > BYUJylZRwJJTJGr gqWAHLI8=
      > =EQNq
      > -----END PGP SIGNATURE-----[/color]


      Comment

      Working...