404 error redirect?

Discussion in 'Site & Server Administration' started by hitboy, Sep 19, 2007.

  1. #1
    Hello I am wondering what code do i need in my 404 pages to have a redirect to a different part of the site or a different url etc?
     
    hitboy, Sep 19, 2007 IP
  2. vagrant

    vagrant Peon

    Messages:
    2,284
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what type of server ? linux / windows ?
     
    vagrant, Sep 19, 2007 IP
  3. hitboy

    hitboy Well-Known Member

    Messages:
    2,939
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Linux server
     
    hitboy, Sep 19, 2007 IP
  4. vagrant

    vagrant Peon

    Messages:
    2,284
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #4
    add to .htaccess


    ErrorDocument 404 /page you want it to be.html

    in root of domain where "page you want it to be" is the page you want

    ie
    ErrorDocument 404 /site_map.html

    or

    ErrorDocument 404 /404.html

    what ever and make the page it redirects to
     
    vagrant, Sep 19, 2007 IP