problem about 404 page

Discussion in 'Apache' started by Richie_Ni, Nov 20, 2006.

  1. #1
    I know how to create a custom 404 page.The problem is I don't know how to get it worked.
    Ok,if I type a wrong url (like: http://nizhongmin.co.uk/abc )
    It gives me a 500 page,how could I set it a 404 page when someone types a wrong url?
    Thanks for the help,
    Richie
     
    Richie_Ni, Nov 20, 2006 IP
  2. ish1301

    ish1301 Banned

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    surly it's problem with htaccess ??

    can you give the source of .htaccess file so i could know more about your problem ?
     
    ish1301, Nov 20, 2006 IP
  3. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #3
    Here's the simple code:
    DirectoryIndex index.html
    ErrorDocument 404 /missing.html
    Code (markup):
    I'd like to let others see the 404 page when someone types a wrong url,but it shows a 500 page instead.
     
    Richie_Ni, Nov 20, 2006 IP