Help - Understanding Response Codes.

Discussion in 'Apache' started by getyour, Nov 26, 2006.

  1. #1
    In looking at stats for my website, I see that there are some response codes that are errors and therefore I am assuming that users are unable to access some pages of my site. I am wondering how I can fix the ones that need it.

    CODE 200 - This is OK.
    CODE 206 - Partial Content - I don't think I can do anything about these?
    CODE 301 - Moved Permanently - What can I do to fix these?
    CODE 302 - This is OK.
    CODE 304 - Not modified - What can I do to fix these?
    CODE 400 - Bad request - What can I do to fix these?
    CODE 405 - Method Not Allowed - What can I do to fix these?

    Also, is there a primer or faq on these codes?

    Thanks.
     
    getyour, Nov 26, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
  3. getyour

    getyour Peon

    Messages:
    290
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Great links - thanks!

    I am working my way through understanding these and fixing those that need it. I am still a little unsure about what I can do to remedy these errors (or if I should even worry about it).
     
    getyour, Nov 26, 2006 IP
  4. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #4
    unless you're getting a ton of one kind of error I wouldn't worry about it.

    always look into 404s, though.
     
    disgust, Nov 26, 2006 IP
  5. getyour

    getyour Peon

    Messages:
    290
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There are quite a few code 304 and 404. I have setup a custom 404 page to tell visitors that a page is missing (w/ links back to index.html). What can I do about CODE 304?

    [​IMG]
     
    getyour, Nov 26, 2006 IP
  6. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #6
    304 codes don't mean anything. it just means the page hasn't changed since the last time they visited it so they don't need to download it again.

    if you get a lot of 404s you probably have some broken links in your site. run some tools to find them.
     
    disgust, Nov 26, 2006 IP
  7. getyour

    getyour Peon

    Messages:
    290
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    disgust,

    Thanks for all of the help - I appreciate it. If you're still not tired of answering my questions, here's one more:

    Can I do a 301 redirect by using the following line of text in my .htaccess file?

    'redirect 301 http://www.site.com/old.htm http://www.site.com/new.htm'

    Thanks.
     
    getyour, Nov 27, 2006 IP