{"id":392,"date":"2024-09-08T05:40:53","date_gmt":"2024-09-08T05:40:53","guid":{"rendered":"https:\/\/webhostingkolkata.co.in\/blog\/?p=392"},"modified":"2024-09-08T05:51:43","modified_gmt":"2024-09-08T05:51:43","slug":"how-to-create-a-domain-redirect","status":"publish","type":"post","link":"https:\/\/webhostingkolkata.co.in\/blog\/how-to-create-a-domain-redirect\/","title":{"rendered":"How to create a site\/domain redirect in cPanel"},"content":{"rendered":"\n<p>Creating a site or domain redirect in <a href=\"https:\/\/www.squarebrothers.com\/cpanel-hosting-india\/\" target=\"_blank\" rel=\"noopener\">cPanel hosting<\/a> is a straightforward process that allows you to direct visitors from one domain or URL to another. This can be useful for various reasons domain redirect , such as guiding users from an old domain to a new one, managing changes in URL structure, or consolidating multiple websites. Here\u2019s a step-by-step guide to setting up a redirect in cPanel.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#1-log-in-to-your-c-panel-account\">1. Log in to Your cPanel Account<\/a><\/li><li><a href=\"#2-navigate-to-the-redirects-tool\">2. Navigate to the Redirects Tool<\/a><\/li><li><a href=\"#3-choose-the-redirect-type\">3. Choose the Redirect Type<\/a><\/li><li><a href=\"#4-set-up-the-redirect\">4. Set Up the Redirect<\/a><\/li><li><a href=\"#5-add-the-redirect\">5. Add the Redirect<\/a><\/li><li><a href=\"#6-verify-the-redirect\">6. Verify the Redirect<\/a><\/li><li><a href=\"#7-managing-redirects\">7. Managing Redirects<\/a><\/li><li><a href=\"#8-considerations-and-best-practices\">8. Considerations and Best Practices<\/a><\/li><li><a href=\"#conclusion\">Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-log-in-to-your-c-panel-account\"><strong>1. Log in to Your cPanel Account<\/strong><\/h3>\n\n\n\n<p>To begin for domain redirect, you need to access your cPanel account. Domain redirect  is typically done through a URL provided by your <a href=\"https:\/\/www.webhostingkolkata.co.in\/web-hosting\/\">web hosting<\/a> provider, often in the format <code>http:\/\/yourdomain.com\/cpanel<\/code> or <code>http:\/\/cpanel.yourdomain.com<\/code>. Enter your username and password to log in.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-navigate-to-the-redirects-tool\"><strong>2. Navigate to the Redirects Tool<\/strong><\/h3>\n\n\n\n<p>Once you\u2019re logged into cPanel, locate the <strong>\u201cDomains\u201d<\/strong> section. Here, you will find several domain-related tools. Click on <strong>\u201cRedirects\u201d<\/strong>. This tool is used to create and manage redirects for your domains.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"248\" src=\"https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image-1024x248.png\" alt=\"\" class=\"wp-image-393\" srcset=\"https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image-1024x248.png 1024w, https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image-300x73.png 300w, https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image-768x186.png 768w, https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image.png 1088w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-choose-the-redirect-type\"><strong>3. Choose the Redirect Type<\/strong><\/h3>\n\n\n\n<p>You\u2019ll be presented with options to set up different types of redirects. There are two primary types:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Permanent (301):<\/strong> This redirect informs browsers and search engines that the URL has permanently moved to a new location. It is the recommended option for SEO purposes if you\u2019re moving to a new domain or URL permanently.<\/li>\n\n\n\n<li><strong>Temporary (302):<\/strong> This redirect indicates that the URL has been temporarily moved. It is useful for temporary changes or maintenance purposes but does not pass the SEO value from the old URL to the new one.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"764\" height=\"540\" src=\"https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/pl_redirects_2.png\" alt=\"\" class=\"wp-image-394\" style=\"width:512px;height:auto\" srcset=\"https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/pl_redirects_2.png 764w, https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/pl_redirects_2-300x212.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/figure><\/div>\n\n\n<p>Select the type of redirect you wish to create. For most cases domain redirect, especially if you\u2019re moving to a new domain permanently, <strong>301<\/strong> is the preferred choice.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-set-up-the-redirect\"><strong>4. Set Up the Redirect<\/strong><\/h3>\n\n\n\n<p>In the <strong>\u201cAdd Redirect\u201d<\/strong> section, you will need to specify several details:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"981\" height=\"641\" src=\"https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image-1.png\" alt=\"\" class=\"wp-image-395\" srcset=\"https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image-1.png 981w, https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image-1-300x196.png 300w, https:\/\/webhostingkolkata.co.in\/blog\/wp-content\/uploads\/2024\/09\/image-1-768x502.png 768w\" sizes=\"auto, (max-width: 981px) 100vw, 981px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Type:<\/strong> Select the type of redirect (301 or 302) from the dropdown menu.<\/li>\n\n\n\n<li><strong>http:\/\/(<a>www<\/a>.)?<\/strong> Select the domain you want to redirect from the dropdown list. If you want to set up a redirect for a specific folder or subdomain, you can choose that here. For a full domain redirect, select the main domain.<\/li>\n\n\n\n<li><strong>Redirects to:<\/strong> Enter the URL where you want visitors to be redirected. This can be a different domain, subdomain, or a specific page on the same or different domain. For example, if you want to redirect <code>http:\/\/oldsite.com<\/code> to <code>http:\/\/newsite.com<\/code>, you would enter <code>http:\/\/newsite.com<\/code> here.<\/li>\n\n\n\n<li><strong><a>www<\/a>. redirection:<\/strong> Choose how you want the redirection to handle \u2018www\u2019 versus non-\u2018www\u2019 versions of your domain. You have options like \u201cRedirect with or without www,\u201d \u201cRedirect with www,\u201d or \u201cRedirect without <a>www.\u201d<\/a> Choose the one that fits your needs.<\/li>\n\n\n\n<li><strong>Wild Card Redirect:<\/strong> If you want to redirect all pages from the old domain to the new domain while maintaining the URL path (e.g., <code>http:\/\/oldsite.com\/page1<\/code> to <code>http:\/\/newsite.com\/page1<\/code>), check the <strong>\u201cWild Card Redirect\u201d<\/strong> box. This ensures that any request to <code>http:\/\/oldsite.com\/anything<\/code> is redirected to <code>http:\/\/newsite.com\/anything<\/code><br><br><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-add-the-redirect\"><strong>5. Add the Redirect<\/strong><\/h3>\n\n\n\n<p>After filling in the necessary details, click on the <strong>\u201cAdd\u201d<\/strong> button to create the redirect. cPanel will process the request and set up the redirect according to the specifications you provided.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6-verify-the-redirect\"><strong>6. Verify the Redirect<\/strong><\/h3>\n\n\n\n<p>To ensure that your redirect is working correctly, test it by entering the old URL into your browser. You should be redirected to the new URL as specified. It\u2019s a good practice to test various URLs within the old domain to confirm that all intended redirects are functioning properly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7-managing-redirects\"><strong>7. Managing Redirects<\/strong><\/h3>\n\n\n\n<p>If you need to modify or delete a redirect, return to the <strong>\u201cRedirects\u201d<\/strong> section in cPanel. Here, you\u2019ll see a list of existing redirects. You can edit or remove them as needed. To delete a redirect, simply click the <strong>\u201cDelete\u201d<\/strong> link next to the redirect you want to remove.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8-considerations-and-best-practices\"><strong>8. Considerations and Best Practices<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SEO Impact:<\/strong> For permanent moves, use 301 redirects to pass SEO value to the new URL. This ensures that search engines and users are directed to the new location, and the old URL\u2019s ranking benefits are transferred.<\/li>\n\n\n\n<li><strong>Redirect Loops:<\/strong> Avoid creating redirect loops, where URL A redirects to URL B, which redirects back to URL A. This can cause infinite loops and prevent users from reaching the intended destination.<\/li>\n\n\n\n<li><strong>Testing:<\/strong> Regularly test your redirects to ensure they\u2019re functioning as expected. This is especially important after making changes to your site or domain structure.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"conclusion\"><strong>Conclusion<\/strong><\/h3>\n\n\n\n<p>Setting up a domain or site redirect in cPanel is an effective way to manage URL changes and direct traffic to the appropriate location. By following the steps outlined above, you can create, manage, and verify redirects to ensure a smooth transition for your website visitors. Whether you\u2019re moving to a new domain or reorganizing your site\u2019s URL structure, cPanel\u2019s redirect tool provides a user-friendly solution for maintaining a seamless user experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating a site or domain redirect in cPanel hosting is a straightforward process that allows you to direct visitors from one domain or URL to another. This can be useful&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-392","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/posts\/392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/comments?post=392"}],"version-history":[{"count":2,"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/posts\/392\/revisions"}],"predecessor-version":[{"id":397,"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/posts\/392\/revisions\/397"}],"wp:attachment":[{"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/media?parent=392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/categories?post=392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostingkolkata.co.in\/blog\/wp-json\/wp\/v2\/tags?post=392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}