{"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":"2023-07-31T11:27:12","modified_gmt":"2023-07-31T11:27:12","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><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">There are a few alternative ways to manage redirections:<\/p><ul>\n<li>\n<p class=\"no-margin\">If you have a <b>Web or Cloud hosting plan<\/b>, you can <b><a href=\"\/support\/1583406-how-to-set-up-a-redirect\" target=\"_blank\" class=\"intercom-content-link\">create it<\/a><\/b> on hPanel<\/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 href=\"\/support\/3212384-how-to-redirect-a-domain-without-a-hosting-plan\" target=\"_blank\" class=\"intercom-content-link\">domain forwarder<\/a><\/b><\/p>\n<\/li>\n<\/ul><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><p class=\"no-margin\">\n<\/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\">\n<\/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\">\n<\/p><p class=\"no-margin\"><b>Additional Resources<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a href=\"https:\/\/www.hostinger.com\/universal-terms-of-service-agreement\" target=\"_blank\" class=\"intercom-content-link\">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-PT","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":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/643\/revisions"}],"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}]}}