How To Set Up 404 Error?

Discussion in 'Search Engine Optimization' started by seoexpertuk, Nov 25, 2010.

  1. #1
    I created new website. I want to add 404 error page. How can add this?

    Please give the tips to me.
     
    seoexpertuk, Nov 25, 2010 IP
  2. susan_ham

    susan_ham Peon

    Messages:
    352
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Generally, you need create a file named 404.shtml and upload it to your server. If you use Cpanel, you need put that file under public_html directory.
     
    susan_ham, Nov 25, 2010 IP
  3. willy4987

    willy4987 Active Member

    Messages:
    419
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #3
    and then what should do?
     
    willy4987, Nov 25, 2010 IP
  4. seoexpertuk

    seoexpertuk Peon

    Messages:
    261
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    In that file, what should i write? Please tell me briefly.
     
    seoexpertuk, Nov 26, 2010 IP
  5. jdr8271

    jdr8271 Member

    Messages:
    209
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #5
    You need to alter your .htaccess file to direct to a 404 page.
     
    jdr8271, Nov 27, 2010 IP
  6. Codd

    Codd Member

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #6
    First design your 404 error page and then upload it to your site.

    Then add this to your .htaccess file without the quotes
    "ErrorDocument 404 /your_file_name.html"
     
    Codd, Nov 28, 2010 IP
  7. sousen

    sousen Active Member

    Messages:
    1,433
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #7
    errors, 404 errors occur when a link attempts to resolve to a webpage that does not exist. When links are "broken" in this manner, search engine rankings can become affected and visitors grow reticent to return. Luckily, the broken links that cause 404 errors are easy to find and fix using Google's online webmaster resources, allowing you to ensure that all pages display correctly and without error.
     
    sousen, Nov 28, 2010 IP
  8. seoexpertuk

    seoexpertuk Peon

    Messages:
    261
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks for the tips. Now i will set up 404 error page.
     
    seoexpertuk, Nov 29, 2010 IP