Forum Moderators: phranque

Message Too Old, No Replies

Clarity about 301 and 308 redirection?

         

bheemram

9:57 am on Apr 16, 2024 (gmt 0)



Hi All,

I am bit confused on redirection, could any guide me in this, which is the best redirection and also want to know the main difference.

not2easy

1:07 pm on Apr 16, 2024 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi bheemram and welcome to WebmasterWorld [webmasterworld.com]

I'm curious, where are you seeing 308 redirection in use?

There are various types of server response codes depending on how and why a resource (URL) is being redirected. A 301 is a permanent redirect to a new location that is recognized by browsers and robots. A 308 is an older but similar type of redirection implemented in 2014 that is not widely recognized today.
Note: This status code is much younger (June 2014) than its sibling codes and thus might not be recognized everywhere. See Section 4 of [RFC7538] for deployment considerations.
from https://www.rfc-editor.org/rfc/rfc9110#status.308

Mozilla Developer mentions it here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308

lucy24

6:00 pm on Apr 16, 2024 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Dang, not2easy, beat me to it. ;) I too saw the subject line and headed straight for rfc.

Since the pair 307/308 is basically the same as 301/302, but is less likely to be interpreted correctly, just stick with 301. Anything that has been around for ten years and is still not generally recognized is probably not worth bothering with.