What are 301 and 302 redirects and how to use them?

Imagine, after a long time, you need to open a bookmark that you have more than a few years already. You try to open it, and…suddenly you see an error – “404 Page not found”. The page you were looking for has gone without a trace, maybe the whole website is missing, or maybe it was just a small change of the URL, but you will probably never know.

This is your first touch with an HTTP status codes, and specifically with 400-type. There are different status code types: 1XX Information responses, 2XX Success, 3XX Redirection, 4XX client errors and 5XX server errors.

You know the owner of the website could have evaded this error with a straightforward action – use a redirection!

Put yourself in the owner’s shoes and let’s see how to avoid such problems.

There are two redirection methods which are mostly used – 301 (moved permanently) and 302 (moved temporarily). Continue reading “What are 301 and 302 redirects and how to use them?”