HTML: Redirect - how to redirect to other pages
A "redirect" is an updated directional instruction for your browser, so to speak. Let's say you have a website and you move with it. If someone doesn't know about your change, he will open the old page. Wouldn't it be nice if he is automatically redirected to the new page?
How to realize a redirect in HTML
Generally, it is not mandatory to include a redirect. It's just a nice variation so that users don't have to face the 404 error code instead of seeing your website.- You can add another tag within your <head> in the HTML document, through which users will be redirected after the connection request.
- Use the following form for this: <meta http-equiv="refresh" content="0; URL=" 'New link' " />.
- In the URL section, specify the address to the new web page. Replace the "0" with the delay of processing in milliseconds.
- But since you certainly want the redirection to happen automatically, leave the value at zero.
- To ensure that visitors are not surprised by the redirection, it is recommended to point it out with a text. Use for this the code <body>You will be automatically redirected to the new website. </body>.