SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: Watching html errors grow???

  1. #1
    SitePoint Guru D-flyer's Avatar
    Join Date
    Jan 2001
    Location
    Near a computer
    Posts
    782
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Watching html errors grow???

    Hi all,

    I am a little confused here. I am using awstats and I see the 302(Moved temporarily (redirect))/301(Moved permanently (redirect)) error reports growing.

    so i added this in my robots.txt
    ErrorDocument 302 http://www.mysite.com
    ErrorDocument 301 http://www.mysite.com

    that should prevent the 301/302 errors from growing, right???

  2. #2
    Massimiliano Bruno Giordano sid egg's Avatar
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    1,280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AWStats will still count them as errors, but they will be sent to "mysite.com", however, there is NO WAY you want to rewrite your 30(1|2)'s to your homepage, 302/1s are redirects that is a BAD idea.
    GamesLib.com - the slickest, most complete and
    easily navigatible flash games site on the web.

  3. #3
    SitePoint Guru D-flyer's Avatar
    Join Date
    Jan 2001
    Location
    Near a computer
    Posts
    782
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm, I am thinking here and you are absolute right.

    I just wanted to get those errors out of awstats. If it's my rule it's no error.

    I know I have 2/3 domain redirect to a subdomain. So you right if I overrule my redirect peepz will never reach my other domains. Am I right?

  4. #4
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,362
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just an off topic correction: Those are HTTP errors. HTTP is the protocol in which browsers like Firefox, IE, Opera, etc. as well as servers such as Apache, IIS, etc. have implemented to send data. HTTP isn't just for HTML. HTML errors are things like "<abjasldkf> is not a valid HTML tag."

    Why not just put a blank robots.txt file there? That's what I do.

  5. #5
    SitePoint Addict ServerUnion's Avatar
    Join Date
    Jan 2005
    Location
    madison, WI
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so i added this in my robots.txt
    ErrorDocument 302 http://www.mysite.com
    ErrorDocument 301 http://www.mysite.com

    This is not valid for the robots.txt. the only 2 items you can place in the file are agents and dissalow. Here is an article I wrote a while back on that topic. http://www.livearticles.org/article.php?articleID=61

    The 301/302 errors are fine, just tells you that someone accessed the URL in questions and was referred to the new page. I wouldn't worry about it as that means the application is working as designed. 404 errors are the bad ones meaning the page was not found.

  6. #6
    Massimiliano Bruno Giordano sid egg's Avatar
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    1,280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, I didn't even notice that I thought he said htaccess... loll
    GamesLib.com - the slickest, most complete and
    easily navigatible flash games site on the web.

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
  •