Results 1 to 8 of 8
  1. #1
    ABW Ambassador Packy's Avatar
    Join Date
    January 18th, 2005
    Location
    Syracuse
    Posts
    4,205
    How to Deal with 404 and 302 Error Pages
    Hi All,

    I have been letting a lot of things slide but now it's time to things the right way and any help is appreciated.

    I'm using a lot of datafeeds that I update regularly. Doing so creates a lot of 404 and 302 error codes which I know isn't good. Another big problem is when a merchant leaves it can create 1000's of 404's

    I've been reading around about being able to add some code to the htaccess file and creating a custom 404 page or a redirect.

    Any thoughts on the best way to do this along with the code to do it would be appreciated. I thought I saw something here awhile back at ABW but couldn't find it. Thanks everyone.
    The Answer to the New York Tax Law - Repeal, REPEAL, REPEAL -

    Camping Gear and Equipment

  2. Thanks From:

  3. #2
    ...and a Pirate's heart. Convergence's Avatar
    Join Date
    June 24th, 2005
    Posts
    6,918
    Removed pages should go to a custom 404 page. One that offers the visitor some alternative products and/or a way to search your site further. This is the easier/cleaner method.

    When a merchant is removed (for whatever reason), leaving thousands of 404s, we typically stage the removal of that merchant. Our site is setup where we can remove a merchant by niche or category, decreasing the number of 404s that occur at one time. The remaining, yet removed links, remain on the site, but the links to the merchant get redirected to a non-indexable "This merchant is no longer available" page and a way for the visitor to find alternatives. That's as close to a 302 we use in this case...
    Salty kisses, Sandy toes, and a Pirate's heart...

  4. Thanks From:

  5. #3
    ABW Ambassador Packy's Avatar
    Join Date
    January 18th, 2005
    Location
    Syracuse
    Posts
    4,205
    Thanks Convergence,

    I'm guessing you use some kind of code in your htaccess file that will redirect dead pages/links to your 404 page?
    The Answer to the New York Tax Law - Repeal, REPEAL, REPEAL -

    Camping Gear and Equipment

  6. #4
    ...and a Pirate's heart. Convergence's Avatar
    Join Date
    June 24th, 2005
    Posts
    6,918
    Quote Originally Posted by Packy View Post
    Thanks Convergence,

    I'm guessing you use some kind of code in your htaccess file that will redirect dead pages/links to your 404 page?
    Standard stuff:

    Code:
    ErrorDocument 404 /404.php
    Salty kisses, Sandy toes, and a Pirate's heart...

  7. Thanks From:

  8. #5
    ABW Ambassador Packy's Avatar
    Join Date
    January 18th, 2005
    Location
    Syracuse
    Posts
    4,205
    Thanks again and that worked like a charm. One last question if you don't mind, at least I think one last question

    You mentioned about having the 404 page non-indexable. Is that the proper way as far as SEO? Also do you just use the <meta name="robots" content="noindex"> code on the 404 page to stop the SE's from listing it or is it better to have it in the robots.txt file. Two questions, sorry
    The Answer to the New York Tax Law - Repeal, REPEAL, REPEAL -

    Camping Gear and Equipment

  9. #6
    ABW Ambassador Packy's Avatar
    Join Date
    January 18th, 2005
    Location
    Syracuse
    Posts
    4,205
    I think I just found the answer to my question. If I put it in the robots.txt file then Google will not be able to see the "noindex" code so I'm thinking not to add it to the robots.txt file and just add the "noindex" meta to the 404 page?
    The Answer to the New York Tax Law - Repeal, REPEAL, REPEAL -

    Camping Gear and Equipment

  10. #7
    ...and a Pirate's heart. Convergence's Avatar
    Join Date
    June 24th, 2005
    Posts
    6,918
    We have it in both the meta tag and robots.txt -

    Bots don't always grab the latest robots.txt before hitting your pages...
    Salty kisses, Sandy toes, and a Pirate's heart...

  11. Thanks From:

  12. #8
    Moderator
    Join Date
    April 6th, 2006
    Posts
    2,689
    just add the "noindex" meta to the 404 page
    Correct..

  13. Thanks From:

  14. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Google Beta Tool Bar & 404 Error Pages
    By glittered in forum Midnight Cafe'
    Replies: 8
    Last Post: February 18th, 2008, 03:31 AM
  2. 302 & 301 Error Messages?
    By gettnthar in forum Midnight Cafe'
    Replies: 1
    Last Post: October 3rd, 2004, 06:10 PM
  3. server.transfer 302 error
    By cowcool in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: April 6th, 2003, 12:46 AM

Tags for this Thread

Posting Permissions

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