{"id":1872,"date":"2023-12-19T03:09:55","date_gmt":"2023-12-19T03:09:55","guid":{"rendered":"https:\/\/cloudlinuxhosting.in\/blog\/?p=1872"},"modified":"2023-12-22T10:31:45","modified_gmt":"2023-12-22T10:31:45","slug":"how-to-redirect-domain-in-control-panel","status":"publish","type":"post","link":"https:\/\/cloudlinuxhosting.in\/blog\/how-to-redirect-domain-in-control-panel\/","title":{"rendered":"How to redirect the domain from control panel"},"content":{"rendered":"<h2 id=\"overview\">Overview<\/h2>\n<p>The\u00a0<em>Redirect<\/em>\u00a0interface allows you to send all of the visitors of a <a href=\"https:\/\/www.squarebrothers.com\/\" target=\"_blank\" rel=\"noopener\">domain<\/a> or particular page to a different URL. For example, if you create a page with a long URL, use the interface to add a redirect from a short URL to the long URL. Visitors can enter the short URL to access the content of the long URL.<\/p>\n<p>In cPanel, the term &#8220;redirect&#8221; refers to a feature that allows you to automatically forward traffic from one URL to another.<\/p>\n<p>&nbsp;<\/p>\n<p>Login your control panel with login credential<\/p>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div role=\"heading\" aria-level=\"3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1876\" src=\"https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/Control-panel-login-page-300x211.png\" alt=\"\" width=\"300\" height=\"211\" srcset=\"https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/Control-panel-login-page-300x211.png 300w, https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/Control-panel-login-page-768x539.png 768w, https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/Control-panel-login-page.png 876w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/div>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div role=\"heading\" aria-level=\"3\">Go to the domain Section and click the redirect option<\/div>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div role=\"heading\" aria-level=\"3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1877\" src=\"https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/redirect-option-300x92.png\" alt=\"\" width=\"300\" height=\"92\" srcset=\"https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/redirect-option-300x92.png 300w, https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/redirect-option-768x237.png 768w, https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/redirect-option.png 880w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/div>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div role=\"heading\" aria-level=\"3\">enter the domain name which you want to redirect and click add option<\/div>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div role=\"heading\" aria-level=\"3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1878\" src=\"https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/enter-the-domain-name-for-redirect-300x187.png\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/enter-the-domain-name-for-redirect-300x187.png 300w, https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/enter-the-domain-name-for-redirect-768x478.png 768w, https:\/\/cloudlinuxhosting.in\/blog\/wp-content\/uploads\/2023\/12\/enter-the-domain-name-for-redirect.png 977w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/div>\n<p>&nbsp;<\/p>\n<div role=\"heading\" aria-level=\"3\"><\/div>\n<div class=\"co8aDb\" role=\"heading\" aria-level=\"3\"><b>To add a redirect, per<\/b><b>form the following actions:<\/b><\/div>\n<div class=\"RqBzHd\">\n<ol class=\"X5LH0c\">\n<li class=\"TrT0Xe\">Select a domain name from the menu, or select **All Public Domains** to all of the domains that your cPanel account controls.<\/li>\n<li class=\"TrT0Xe\">Select one of the following settings: &#8230;<\/li>\n<li class=\"TrT0Xe\">Click Add.<\/li>\n<\/ol>\n<\/div>\n<h2 id=\"add-a-redirect\">Add a redirect<\/h2>\n<ul>\n<li>Select a redirect type from the <em>Type<\/em>\u00a0menu.\n<ul>\n<li><em>Permanent (301)<\/em>\u00a0\u2014 This setting notifies the visitor\u2019s browser to update its records.<\/li>\n<li><em>Temporary (302)<\/em>\u00a0\u2014 This setting does\u00a0<strong>not<\/strong>\u00a0update the visitor\u2019s bookmarks.<\/li>\n<\/ul>\n<\/li>\n<li>Select a domain name from the menu, or select\u00a0<em>**All Public Domains**<\/em>\u00a0to redirect all of the domains that your cPanel account controls.<\/li>\n<li>In the next text box, enter the rest of the URL from which you wish for the server to visitors. For example, if you wish to redirect <code>http:\/\/example.com\/directory.file.html<\/code>\u00a0to another URL, enter\u00a0<code>directory\/file.html<\/code>\u00a0in this text box.<\/li>\n<li>In the to text box, enter the URL to which you wish to users.\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<p>You\u00a0<strong>must<\/strong>\u00a0specify a protocol in this text box. For example,\u00a0<code>http:\/\/<\/code>,\u00a0<code>https:\/\/<\/code>, or\u00a0<code>ftp:\/\/<\/code>.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<li>Select one of the following settings:\n<ul>\n<li><em>Only redirect with www.<\/em> \u2014 This setting only\u00a0 visitors who enter the\u00a0<em>www.<\/em>\u00a0prefix before the domain name part of the URL.<\/li>\n<li><em>Redirect with or without www.<\/em> \u2014 This setting all users, regardless of whether the visitor enters the\u00a0<em>www.<\/em>\u00a0prefix before the domain name part of the URL.<\/li>\n<li><em>Do Not Redirect www.<\/em>\u00a0\u2014 This setting does\u00a0<strong>not<\/strong>\u00a0redirect users who enter the\u00a0<em>www.<\/em> prefix before the domain name part of the URL.\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>The interface disables the\u00a0setting if you select\u00a0<em>**All Public Domains**<\/em>.<\/p>\n<\/div>\n<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<li>Select the\u00a0<em>Wild Card Redirect<\/em>\u00a0setting if you wish to redirect all files within a directory to the same filename in the new directory. For example, if you enable the\u00a0<em>Wild Card<\/em>\u00a0setting and\u00a0<code>example1.com<\/code> redirect to\u00a0<code>example.com<\/code>, then a visitor who tries to access the\u00a0<code>http:\/\/example1.com\/pic.jpg<\/code> URL redirect to the\u00a0<code>http:\/\/example.com\/pic.jpg<\/code> URL<\/li>\n<li>Click\u00a0<em>Add<\/em>.<\/li>\n<li>To test the redirect, click the link under\u00a0<em>Directory<\/em>\u00a0in the\u00a0<em>Current<\/em> table. If you properly configured, the system directs you to the original domain.<\/li>\n<\/ul>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>To add a redirect where the original domain appears in the browser\u2019s address bar, create a subdomain and rd <b>\u00a0<\/b>it to your chosen domain. You can create a subdomain in cPanel\u2019s <a href=\"https:\/\/cloudlinuxhosting.in\/blog\/\"><em>Domains<\/em><\/a>\u00a0interface (<em>cPanel \u00bb Home \u00bb Domains \u00bb Domains<\/em>).<\/p>\n<\/div>\n<\/div>\n<h3 id=\"redirects-via-third-party-applications\">Redirect via third-party applications<\/h3>\n<p>When you add a with cPanel interface, the system places rules at the bottom of the <code>.htaccess<\/code>\u00a0file. Some third-party applications will ignore your rule because those applications only read rules and configurations that their section of the\u00a0<code>.htaccess<\/code>\u00a0file contains.<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"examples\">Examples for permanent and temporary redirects<\/h2>\n<ul>\n<li><em>permanent<\/em>\u00a0\u2014 This setting notifies the visitor\u2019s browser to update its records.<\/li>\n<li><em>temporary<\/em>\u00a0\u2014 This setting does\u00a0<strong>not<\/strong>\u00a0update the visitor\u2019s bookmarks.<\/li>\n<\/ul>\n<h3 id=\"permanent-redirects\">Permanent<\/h3>\n<p>The following is a permanent\u00a0 of an entire site from its original location to example.com:<\/p>\n<div class=\"highlight\">\n<pre class=\" language-perl\" tabindex=\"0\"><code class=\" language-perl\" data-lang=\"perl\"> <span class=\"token number\">301<\/span> <span class=\"token operator\">\/<\/span> http<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/<\/span><span class=\"token regex\">\/example.com\/<\/span><\/code><\/pre>\n<\/div>\n<p>The following is a permanent\u00a0 of a page on example.com to a different page on example.com:<\/p>\n<div class=\"highlight\">\n<pre class=\" language-perl\" tabindex=\"0\"><code class=\" language-perl\" data-lang=\"perl\"> <span class=\"token number\">301<\/span> <span class=\"token operator\">\/<\/span>original<span class=\"token operator\">.<\/span>html http<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>www<span class=\"token operator\">.<\/span>example<span class=\"token operator\">.<\/span>com<span class=\"token operator\">\/<\/span>new<span class=\"token operator\">.<\/span>html<\/code><\/pre>\n<\/div>\n<p>The following is a permanent of an entire directory on example.com to a different directory on example.com:<\/p>\n<div class=\"highlight\">\n<pre class=\" language-perl\" tabindex=\"0\"><code class=\" language-perl\" data-lang=\"perl\"> <span class=\"token number\">301<\/span> <span class=\"token operator\">\/<\/span>old<span class=\"token operator\">-<\/span>directory http<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>www<span class=\"token operator\">.<\/span>example<span class=\"token operator\">.<\/span>com<span class=\"token operator\">\/<\/span>new<span class=\"token operator\">-<\/span>directory<\/code><\/pre>\n<\/div>\n<h3 id=\"temporary-redirects\">Temporary<\/h3>\n<p>The following is a temporary\u00a0 of an entire site from its original location to example.com:<\/p>\n<div class=\"highlight\">\n<pre class=\" language-perl\" tabindex=\"0\"><code class=\" language-perl\" data-lang=\"perl\"> <span class=\"token number\">302<\/span> <span class=\"token operator\">\/<\/span> http<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/<\/span><span class=\"token regex\">\/example.com\/<\/span><\/code><\/pre>\n<\/div>\n<p>The following is a temporary of a page on example.com to a different page on example.com:<\/p>\n<div class=\"highlight\">\n<pre class=\" language-perl\" tabindex=\"0\"><code class=\" language-perl\" data-lang=\"perl\"> <span class=\"token number\">302<\/span> <span class=\"token operator\">\/<\/span>original<span class=\"token operator\">.<\/span>html http<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>www<span class=\"token operator\">.<\/span>example<span class=\"token operator\">.<\/span>com<span class=\"token operator\">\/<\/span>new<span class=\"token operator\">.<\/span>html<\/code><\/pre>\n<\/div>\n<p>The following is a temporary\u00a0 of an entire directory on example.com to a different directory on example.com:<\/p>\n<div class=\"highlight\">\n<pre class=\" language-perl\" tabindex=\"0\"><code class=\" language-perl\" data-lang=\"perl\"> <span class=\"token number\">302<\/span> <span class=\"token operator\">\/<\/span>old<span class=\"token operator\">-<\/span>directory http<span class=\"token punctuation\">:<\/span><span class=\"token operator\">\/\/<\/span>www<span class=\"token operator\">.<\/span>example<span class=\"token operator\">.<\/span>com<span class=\"token operator\">\/<\/span>new<span class=\"token operator\">-<\/span>directory\r\n\r\nIt's important to note that when you set up a, \r\nit may take some time for changes to propagate across the internet, \r\nso the  may not take effect immediately. Additionally, \r\nproper configuration of can help maintain a positive user \r\nexperience and ensure that search engines handle the changes appropriately.<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The\u00a0Redirect\u00a0interface allows you to send all of the visitors of a domain or particular page to a different URL. For example, if you create a page with a long URL, use the interface to add a redirect from a short URL to the long URL. Visitors can enter the short URL to access the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1886,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,53],"tags":[],"class_list":["post-1872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panel","category-domain"],"_links":{"self":[{"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=1872"}],"version-history":[{"count":7,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1872\/revisions"}],"predecessor-version":[{"id":1885,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/posts\/1872\/revisions\/1885"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/media\/1886"}],"wp:attachment":[{"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=1872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=1872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=1872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}