Results 1 to 2 of 2

Thread: Apache Server Config

  1. #1
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Apache Server Config

    How do I set my apache server to use a 404.php page in response to 404 errors instead of a 404.shtml page? I read somewhere you use like

    ErrorDocument 404 /404.php

    but where do I edit that? And it's on a server taht supports multiple domains, and I want this to happen only one of the domains... is that a problem?

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Using htaccess would be your best bet without actually editing the main server config. Just make a plain text file name .htaccess and place the code you posted above in that file.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •