{"id":1189,"date":"2020-10-05T17:45:44","date_gmt":"2020-10-05T17:45:44","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/10\/05\/4508514-how-to-set-up-a-redirect-on-cpanel\/"},"modified":"2026-03-11T18:58:01","modified_gmt":"2026-03-11T18:58:01","slug":"4508514-how-to-set-up-a-redirect-on-cpanel","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4508514-how-to-set-up-a-redirect-on-cpanel\/","title":{"rendered":"How to Set Up a Redirect on cPanel"},"content":{"rendered":"<p class=\"no-margin\">To create and manage domain redirects on cPanel, go to Domains &rarr; <b>Redirects<\/b>:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2020\/10\/8b8484be-54cc-4e0c-86f7-42c95ca295fb.jpg\" alt=\"The redirects option in cPanel\"><\/div><p class=\"no-margin\">Next, select the redirect type, the domain, specify a custom path to be redirected if applicable, and choose between redirecting the www or root domain:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2020\/10\/09ba25fc-da83-4994-99aa-d933948ace65.jpg\" alt=\"The Add redirect page and its settings\"><\/div><p class=\"no-margin\">For the redirect type, consider the following:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>Permanent 301<\/b> &ndash; Use if the original URL will no longer be in use. It is the recommended option for <b><a href=\"https:\/\/www.hostinger.com\/tutorials\/what-is-seo\/\" target=\"_blank\" class=\"intercom-content-link\">SEO<\/a><\/b>, since you can keep the search ranking of the previous domain<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Temporary 302<\/b> &ndash; You can use this redirect if the redirect is temporary, eg. when your website is under maintenance<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Wild Card Redirect<\/b>  &ndash; will redirect all files within a directory to the same filename in the redirected directory<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">Once created, the redirect will appear on the bottom of the page, where you will be able to delete it if needed:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2020\/10\/f7596abd-b5bc-4191-bfe2-06a24a977358.jpg\" alt=\"The Current Redirects list in cPanel and the option to delete a redirect\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Creating a redirect on cPanel<\/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":[190],"tags":[],"class_list":["post-1189","post","type-post","status-publish","format-standard","hentry","category-getting-started-cpanel"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4508514-how-to-set-up-a-redirect-on-cpanel\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/4508514-como-configurar-una-redireccion-en-cpanel-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/4508514-comment-creer-une-redirection-sur-cpanel-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/4508514-bagaimana-cara-setup-redirect-di-cpanel-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/4508514-como-criar-um-redirecionamento-no-cpanel-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1189","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=1189"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1189\/revisions"}],"predecessor-version":[{"id":8614,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1189\/revisions\/8614"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}