Redirection is a pretty common aspect in the world of internet. As such, there have been such occasions when we – as internet users – have come across such situations. In plain and simple words, it is the process of forwarding a URL (Uniform Resource Locator) to another. However, this topic is appropriate for an elaborate discussion.

What is redirection?

URL redirection is a common technique used on the World Wide Web and is also popularly referred to as URL forwarding. It is mainly used for making a webpage available under several URL addresses.

Thus, when a browser tries to open a particular URL that has already been redirected, a page with a different URL automatically opens up.

Why

Redirection technique is implemented on either of the following aspects.

  • The pages have expired
  • Content has been moved

Citing an example in this context might prove to be helpful. Suppose, there are two URLs

http://www.nationalitsolution.com/bcd and

http://www.nationalitsolution.com/xyz

When a user clicks on the first URL, the user automatically lands on the second one. This happens only because there is a redirection defined on the first URL.

Types

There are several types of redirections that one can avail under different circumstances. However, three types of redirection are most crucial. These are

  • 301
  • 302 and
  • Meta fresh

301 redirect is a permanent redirect. In simple words, it indicates that the mentioned location is valid no more and attempt to access the location will invariably result in accessing the new location.

As such, it is the best redirecting methods for any website.

On the other hand, 302 redirect is a temporary redirect. This redirection process indicates that it has been chosen for the time being and the change will revert back in future.

Meta fresh is a completely different type of redirect as compared to the previous two. It is performed on page level rather than on server level.

It is not an impressive technique.

Usually, it comes with a five second countdown with the string “If you are not redirected in 5 seconds, click here”

As such, there can be nested redirection for a URL. That is the first link leads to the second URL, which in turn lands the visitor on a third location. It is a pretty convenient tool to help internet users access the right locations.