404 pages (file not found)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • timg
    Member
    • Feb 2005
    • 84

    #1

    404 pages (file not found)

    I recognize that there is some customization available from the control panel, but is there a way to have my own *real* 404 page used for this, rather than simply tinkering? I want a 404 page that matches my site.
    ~ Tim Gallant ~ http://www.pactumweb.com
  • timg
    Member
    • Feb 2005
    • 84

    #2
    Sorry.

    Not used to having such good resources at my fingertips. A search on "404" answered my question quickly.
    ~ Tim Gallant ~ http://www.pactumweb.com

    Comment

    • sdjl
      Senior Member
      • Mar 2004
      • 502

      #3
      Just use the apache .htaccess directive to point a user to a page of yours.
      Code:
      ErrorDocument 404 /error.php?type=404
      David
      -----
      Do you fear the obsolescence of the metanarrative apparatus of legitimation?

      Comment

      • Jonathan
        Senior Member
        • Mar 2004
        • 1229

        #4
        Originally posted by sdjl
        Just use the apache .htaccess directive to point a user to a page of yours.
        Code:
        ErrorDocument 404 /error.php?type=404
        David
        Be sure to have a "error.php" file, then have it setup so that
        depending on the value of "type" (ie, 404 for 404, 401 for a 401, etc)
        display a different message on the same basic page. Every effective David
        "How can someone be so distracted yet so focused?"
        - C

        Comment

        • sdjl
          Senior Member
          • Mar 2004
          • 502

          #5
          Ah yes, obviously, you need to have an actual error.php file there
          Why use multiple files when you can use a generic file and get PHP to output the errors for you
          There's some nice predefined values held in the $_SERVER variable!

          David
          -----
          Do you fear the obsolescence of the metanarrative apparatus of legitimation?

          Comment

          Working...