{"id":643,"date":"2023-07-31T11:27:12","date_gmt":"2023-07-31T11:27:12","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/07\/31\/8193624-how-to-create-a-redirection-via-html-in-hostinger\/"},"modified":"2026-09-15T10:20:38","modified_gmt":"2026-09-15T10:20:38","slug":"8193624-how-to-create-a-redirection-via-html-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/8193624-how-to-create-a-redirection-via-html-in-hostinger\/","title":{"rendered":"How to create a redirection via HTML in Hostinger"},"content":{"rendered":"<p class=\"no-margin\">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.<\/p><h3>Before you start<\/h3><ul>\n<li>\n<p class=\"no-margin\">If you have a <b>Web or Cloud hosting plan<\/b>, you can <b><a data-click-id=\"hgr-post-content-link-create-it\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1583406-how-to-set-up-a-redirect-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">create it<\/a><\/b> on Hostinger dashboard<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If you only have a <b>domain name<\/b> purchased at Hostinger, you can create a <b><a data-click-id=\"hgr-post-content-link-domain-forwarder\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/3212384-how-to-redirect-a-domain-without-a-hosting-plan-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">domain forwarder<\/a><\/b><\/p>\n<\/li>\n<\/ul><h2 id=\"h-create-the-html-redirect\">Create the HTML redirect<\/h2><p class=\"no-margin\">For other cases, you can create it using HTML. Open the .<b>html<\/b> file of the page from which you want to redirect visitors and add the following line:<\/p><pre><code>&lt;meta http-equiv=\"refresh\" content=\"1;url=http:\/\/domain.tld\"&gt;<\/code><\/pre><p class=\"no-margin\">Remember to replace <b>domain.tld<\/b> with the desired URL for your redirect.<\/p><p class=\"no-margin\">Breaking down the code:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>Meta<\/b> &ndash; indicates it&rsquo;s a meta tag<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>http-equiv=&rdquo;refresh&rdquo;<\/b> &ndash; instructs to refresh the page<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>content=1<\/b> &ndash; specifies the time delay in seconds. In this case, 1 second<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>url=<\/b> &ndash; indicates the URL to which you want to redirect users<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">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&rsquo;s essential to be <b>cautious<\/b> when using meta refresh for redirections.<\/p><p class=\"no-margin\"><b>Additional resource<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a data-click-id=\"hgr-post-content-link-hostinger-terms-of-service\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/universal-terms-of-service-agreement\" target=\"_blank\" rel=\"noopener\">Hostinger Terms of Service<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Redirecting a page to a different URL using meta tags in HTML<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[274],"tags":[],"class_list":["post-643","post","type-post","status-publish","format-standard","hentry","category-website-development"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/8193624-how-to-create-a-redirection-via-html-in-hostinger","default":1},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/8193624-como-criar-um-redirecionamento-via-html-no-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/643","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=643"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/643\/revisions"}],"predecessor-version":[{"id":15153,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/643\/revisions\/15153"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=643"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=643"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=643"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}