{"id":367,"date":"2017-02-19T13:24:14","date_gmt":"2017-02-19T13:24:14","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=367"},"modified":"2023-01-12T11:38:08","modified_gmt":"2023-01-12T11:38:08","slug":"setup-domain-redirect-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/setup-domain-redirect-cpanel\/","title":{"rendered":"How to Setup a Domain Redirect in cPanel"},"content":{"rendered":"<p>Different web redirects can be created from your cPanel account; these can be either Temporary or Permanent.<\/p>\n<h3 id=\"temporary-redirects\">Temporary redirects<\/h3>\n<p><span style=\"font-size: 14px;\">Temporary redirects<\/span> (status code\u00a0302 &#8211; Found) can be used when your website must be temporarily\u00a0redirected. For example, if you are performing site maintenance, redirect the visitors to a temporary page to inform your visitors that you will be back shortly.<\/p>\n<h3 id=\"permanent-redirects\">Permanent redirects<\/h3>\n<p><span style=\"font-size: 14px;\"><em>Permanent redirects<\/em>\u00a0<\/span>(status code 301 &#8211; Moved Permanently), it&#8217;s a method of telling visitors and search engines that the web page or site has been permanently moved to a new location. This will allow search engines to direct ranking and value signals to the new URL as they understand this location as the new, permanent home for that content. This type of redirect should be used whenever a website is moved to a new domain name.<\/p>\n<h3 id=\"how-to-setup-a-domain-redirect-in-cpanel\">How to Setup a Domain Redirect in cPanel<\/h3>\n<p><strong>1)<\/strong>\u00a0<a style=\"box-sizing: border-box; text-decoration: none; outline: none; background: none; color: #2a94e5; line-height: 1; display: inline-block;\" href=\"https:\/\/chemicloud.com\/kb\/article\/login-cpanel-whm-account\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into cPanel<\/a>.<\/p>\n<p><strong>2)<\/strong> Click the &#8220;<strong>Redirects&#8221;<\/strong> button in the <strong>Domains<\/strong> section.<\/p>\n<figure id=\"attachment_7628\" aria-describedby=\"caption-attachment-7628\" style=\"width: 643px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-7628\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects-783x193.png\" alt=\"\" width=\"643\" height=\"158\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects-783x193.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects-300x74.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects-768x189.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects-50x12.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects-1536x378.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects-60x15.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects-100x25.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-Domains-Redirects.png 1754w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-7628\" class=\"wp-caption-text\">cPanel &gt; Domains &gt; Redirects<\/figcaption><\/figure>\n<p><strong>3)<\/strong> You will then be on the<strong> Add Redirect<\/strong> page. From the &#8220;<strong>Type&#8221;<\/strong> drop-down box chose which type or redirect you want to create for the domain\u00a0<strong>Permanent (301)<\/strong>\u00a0or <strong>Temporary (302)<\/strong>.<\/p>\n<p><strong>4)<\/strong> Click the next drop-down box and choose the domain you want to redirect.<\/p>\n<p><strong>5)<\/strong> For the slash &#8216;\/&#8217; field, enter any folder names if necessary.<\/p>\n<p><strong>6)<\/strong> Enter the address you want to redirect to in the &#8220;<strong>Redirects<\/strong>\u00a0<strong>to<\/strong>&#8221; section.<\/p>\n<p><strong>7)<\/strong> Chose either of the options:<\/p>\n<ul>\n<li>&#8220;Only redirect with www.&#8221;<\/li>\n<li>&#8220;Redirect with or without www.&#8221;<\/li>\n<li>&#8220;Do Not Redirect www.&#8221;<\/li>\n<\/ul>\n<p><strong>8)<\/strong> Check the box to create a Wild Card Redirect. This will add the file\/folder name after the URL when it redirects. For instance, domain.com\/file.php would redirect to domain2.com\/file.php.<\/p>\n<p><strong>9)<\/strong> Click the &#8220;<strong>Add<\/strong>&#8221; button when you are happy with the settings.<\/p>\n<p>That&#8217;s it; now you know how to setup a domain redirect in your cPanel account.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Different web redirects can be created from your cPanel account; these can be either Temporary or Permanent. Temporary redirects Temporary redirects (status code\u00a0302 &#8211; Found) can be used when your website must be temporarily\u00a0redirected. For example, if you are performing site maintenance, redirect the visitors to a temporary page to&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[190],"ht-kb-tag":[],"class_list":["post-367","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-domains"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=367"}],"version-history":[{"count":6,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/367\/revisions"}],"predecessor-version":[{"id":7629,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/367\/revisions\/7629"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=367"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=367"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}