What is redirection?

Learn about page redirection.

Redirecting the current page to a new page.

Why do you need redirection?

  • To redirect to the new URL when a pageโ€™s URL changes
  • To redirect an invalid subdomain to another domain
  • To redirect to another page for log-in or authentication purposes

There are two types of redirections as follows:

  • Redirection 301

    - Redirect immediately without processing any server-side or client-side code

  • Redirection 302

    - Redirect temporarily using a script or html tag