Previous Next

Thread: A question from the SEO Community

Last post 06-29-2007 8:50 AM by jeff@zina.com. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 06-26-2007, 3:26 PM

    • mcanerin
    • Not Ranked
    • Joined on 06-26-2007, 7:09 PM
    • Posts 1
    • mcanerin

    A question from the SEO Community

    There is no perfect area to post this in, since it's a historical question, but I'm hoping it may result in something getting fixed (or at least an explanation) so I'm putting it here. Mods, feel free to move as required :)

     My name is Ian McAnerin, and I'm a professional SEO. I'm currently writing a book on international SEO and am researching the chapter on redirects, which brings me to this post.

     The general consensus among search engines and SEO's is that you should avoid 302 redirects whenever possible, unless you truly mean to "temporarily" redirect something, which on the web isn't very common. Normally, you just want to say "nope, that's not here anymore, it's over there", which is a 301.

    The problem is that both IIS and Apache default to a 302 whenever someone does a redirect. You have to know what you are doing to go the extra step and specifically state that you want a 301 or Permanent redirect, which, since that's probably what you want to do most of the time, seems contrary to principles of usability. This has resulted in a huge number of websites loosing rankings, getting hijacked (ala the infamous "Google Hijack") and generally causing havoc among website owners who tell their ISP's to redirect so-and-so, resulting in the tech typing in "redirect x to y" and therefore resulting in a 302 and all sorts of issues.

     My question is WHY? Is there actually a historic or programming reason why both Apache and IIS default to a 302 for redirects? Was it considered to be a good idea at one time? Was MS just copying Apache without thinking about it? I'd really like to know, since the current consensus in the search community about the programmers of these servers and their techs/admins is somewhat less than kind about this issue. I'd love to present the other side of the story, if there is one.

    If there isn't a good reason, then please take this as a request for when someone asks for a redirect, that they actually get a permanent redirect, unless they state they only want one for a little while (i.e. default to a 301 rather than a 302).

    Thanks

    Ian

    http://www.mcanerin.com
  • 06-29-2007, 8:50 AM In reply to

    Re: A question from the SEO Community

    If I recall, default for the original NCSA web server was a 302 as well.  And a 302 isn't supposed to be a temporary redirect, that's a 307.  302 is just Object Moved.

    From a technical standpoint, it's not just servers but browsers as well.  Any 300 code is supposed to indicate an extra action is needed to retrieve the request.  A 302 isn't always supposed to retrieve the redirected URL, but browsers treat it as if it were a 303, which is rarely implemented anyway, and continue the request as directed by the server.  A 301 status might not generate the expected action in the user's browser.

    But I think you'll find the major issue is that a 301 is cacheable and a 302 isn't (unless specifically requested as such).  That means if the redirect ever changes, the browser might be serving cached data incorrectly, not the desired result.  Part of that is a browser programming issue, part server programming, but it's been a standard for years.

    Note that I don't disagree with any of what you say, though I'm ptrobably more on the side of Search Engines getting their act together and adopting some way of managing these issues.  Sure, a 301 would allow a search engine to change the stored URL since it was a permanent redirect, but really, why not store a 302 the same way.  Unless it's absolutely temporary, as evidenced by a 307 status, why not assume permanent redirection?  After all, current practice assumes that if it's not a 301 it's temporary, when a 302 doesn't really indicate one way or the other?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
Page 1 of 1 (2 items)
Page view counter