Page Redirect Generator


There are a several ways how you can redirect a HTML page to another page. HTML Redirect uses <meta> tag with the http-equiv attribute to redirect the page.

Enter the URL of the page to redirect:
HTML


How do you redirect a HTML page?

You can use the HTML <meta> tag with the http-equiv attribute set to create a simple page redirection. By setting http-equiv="refresh" tells the browser to refresh the page.

        <!DOCTYPE html>
        <html>
        <head>
            <meta http-equiv="refresh" content="5;url=https://www.iplocation.net">
        </head>
        <body>
            <p>If you are not redirected, <a href="https://www.iplocation.net.net">click here</a>.</p>
        </body>
        </html>
        

The attribures used with the <meta> tag defines its behaviors.

  • http-equiv="refresh": The http-equiv attribute provides an HTTP header for the value of the content attribute.
  • content="5;url=https://www.iplocation.net": The content attribute specifies the page should be refreshed after 5 seconds, and the page should be redirected to https://www.iplocation.net.

You may change the value of time delay by changing the value in the content attribute, and also the URL of the redirection. It is best practice to provide a message or a link in the <body> to let the user know the page will be redirected in # of seconds in the event the browser does not support meta fresh tag. Also, providing a link in the body to let the user manually navigate to the destination URL without having to wait the full 5 seconds before automatic redirection occurs would be nice.

The meta refresh is one of the method that can be used to redirect a page to another URL, but it's not the best way to achieve it. You may also use .htaccess, server-side programming, or Javascript to achieve the page redirection for better user experience.



Tool Search by Keyword

IP Location

Your IP    Hide My IP
IP Location , ,   
ISP
Platform
Browser

Advertisement

Advertisement