Skip to main content
All CollectionsWebsiteWebsite Development
How to Create a Redirection via HTML
How to Create a Redirection via HTML

Redirecting a page to a different URL using meta tags in HTML

Updated over a year ago

Redirections help guide users from one URL to another efficiently. They are useful for heading users to a new website, updating outdated URLs, or handling maintenance pages.

There are a few alternative ways to manage redirections:

  • If you have a Web or Cloud hosting plan, you can create it on hPanel

  • If you only have a domain name purchased at Hostinger, you can create a domain forwarder

For other cases, you can create it using HTML. Open the .html file of the page from which you want to redirect visitors and add the following line:

<meta http-equiv="refresh" content="1;url=http://domain.tld">

Remember to replace domain.tld with the desired URL for your redirect.

Breaking down the code:

  • Meta - indicates it's a meta tag

  • http-equiv="refresh" - instructs to refresh the page

  • content=1 - specifies the time delay in seconds. In this case, 1 second

  • url= - indicates the URL to which you want to redirect users

Please note that unexpected redirections can raise suspicions among users. Additionally, search engines might misinterpret this type of redirection, leading to potential SEO-related issues. Therefore, it's essential to be cautious when using meta refresh for redirections.

Additional Resources

Did this answer your question?