{"id":5086,"date":"2021-10-15T18:52:46","date_gmt":"2021-10-15T18:52:46","guid":{"rendered":"https:\/\/www.cldy.com\/support\/?post_type=docs&#038;p=5086"},"modified":"2022-09-18T00:19:13","modified_gmt":"2022-09-17T16:19:13","password":"","slug":"how-to-redirect-a-domain-to-another-domain","status":"publish","type":"docs","link":"https:\/\/www.cldy.com\/support\/help\/how-to-redirect-a-domain-to-another-domain\/","title":{"rendered":"How to Redirect a Domain to Another Domain?"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">Redirecting a domain is the process of pointing a web address or domain, including subdomains, to another domain or subdomain, for a certain purpose.\u00a0<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<h2><strong>Why domain redirect?<\/strong><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>You\u2019re moving websites, and you want all the traffic directed from the old domain to the new one.\u00a0<\/li>\r\n<li>You\u2019re running ads or marketing campaigns, and you want to track conversions. Tracking would be simpler and more focused when it\u2019s directed to a specific page on your website, or even a separate domain.<\/li>\r\n<li>Your website visitors frequently mistype your web address.\u00a0<\/li>\r\n<li>You\u2019ve finally bought the domain you\u2019ve wanted for so long but you\u2019ve already set up your website on another domain. A redirect is simpler than a whole website migration.\u00a0<\/li>\r\n<li>You own a whole lot of domains and you want them all to redirect to a specific domain.\u00a0<\/li>\r\n<li>To manage broken links in your website.\u00a0<\/li>\r\n<li>To guide website visitors as they navigate in and out of your website.\u00a0<\/li>\r\n<li>Privacy protection is also a function of URL Redirection.\u00a0<\/li>\r\n<li>URL shortening could also be a function of URL Redirection.\u00a0<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n<h2>Performing the domain redirection using cPanel<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Now that you understand why you might consider redirecting certain domains to a specific website or domain that you own, here are the steps on how to redirect your domains.\u00a0<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li><strong>Log In to your CLDY cPanel.\u00a0<\/strong>\r\n<ul>\r\n<li>Usually, the cPanel Web Address can be navigated to through your domain, in this format:\u00a0\r\n<ul>\r\n<li><a href=\"https:\/\/yourdomain.com\/cpanel\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/yourdomain.com\/cpanel<\/a>\u00a0<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"2\">\r\n<li><strong>Scroll down to the \u201cDomains\u201d section.<\/strong><\/li>\r\n<\/ol>\r\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6491\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains.png\" alt=\"\" width=\"1038\" height=\"286\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains.png 1038w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains-300x83.png 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains-1024x282.png 1024w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains-768x212.png 768w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"3\">\r\n<li><strong>Click and go into the \u201cRedirects\u201d menu.\u00a0<\/strong><\/li>\r\n<\/ol>\r\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6492\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains-redirects.png\" alt=\"\" width=\"1038\" height=\"180\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains-redirects.png 1038w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains-redirects-300x52.png 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains-redirects-1024x178.png 1024w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_homepage-domains-redirects-768x133.png 768w\" sizes=\"(max-width: 1038px) 100vw, 1038px\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"4\">\r\n<li><strong>On the \u201cType,\u201d field choose the type of Redirect you want to use for your domain.\u00a0<\/strong>\r\n<ul>\r\n<li>There\u2019s a note explaining the difference between a \u201cPermanent\u201d or a \u201cTemporary\u201d redirect.\u00a0<\/li>\r\n<li>For your ease, this is the note:\u00a0\r\n<ul>\r\n<li>A permanent redirect will notify the visitor\u2019s browser to update any bookmarks that are linked to the page that is being redirected.\u00a0<\/li>\r\n<li>Temporary redirects will not update the visitor\u2019s bookmarks.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6493\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-type.png\" alt=\"\" width=\"678\" height=\"108\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-type.png 678w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-type-300x48.png 300w\" sizes=\"(max-width: 678px) 100vw, 678px\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"5\">\r\n<li><strong>On \u201chttps?:\/\/(www.)?\u201d or \u201chttp?:\/\/(www.)?\u201d field if you have not installed SSL and enforced HTTP for the domain yet, choose the domain you will be redirecting.\u00a0<\/strong><\/li>\r\n<\/ol>\r\n<p><img decoding=\"async\" class=\"alignnone wp-image-6496 size-full\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-https-select-domain-1.png\" alt=\"\" width=\"678\" height=\"143\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-https-select-domain-1.png 678w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-https-select-domain-1-300x63.png 300w\" sizes=\"(max-width: 678px) 100vw, 678px\" \/><\/p>\r\n<ul>\r\n<li style=\"list-style-type: none;\">\r\n<ul>\r\n<li>Your domains will appear under this dropdown list.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"6\">\r\n<li><strong>If you need to use a specific installation or folder, you may specify it on the \u201c\/\u201d field.\u00a0<\/strong>\r\n<ul>\r\n<li>You can actually install WordPress on several folders under one domain, so this will be useful if you\u2019re doing this for your domain.<\/li>\r\n<li>Other WordPress installations can also be installed on subdomains, and they may point to other folders on your File Manager, as well.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6495\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-installation-folder.png\" alt=\"\" width=\"684\" height=\"72\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-installation-folder.png 684w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirect-installation-folder-300x32.png 300w\" sizes=\"(max-width: 684px) 100vw, 684px\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"7\">\r\n<li><strong>Specify where your domain will be redirecting to.\u00a0<\/strong><\/li>\r\n<\/ol>\r\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6497\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirects-to-new-domain.png\" alt=\"\" width=\"682\" height=\"172\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirects-to-new-domain.png 682w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirects-to-new-domain-300x76.png 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"8\">\r\n<li><strong>Choose the type of \u201cwww. redirection:\u201d you\u2019ll be using. We recommend using \u201cRedirect with or without www.\u201d because this will enforce redirection for the whole domain, and whether the user typed \u201cwww\u201d with the web address or not.\u00a0<\/strong><\/li>\r\n<\/ol>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"9\">\r\n<li><strong>Read the notes about whether to tick the \u201cWild Card Redirect\u201d option and make your choice accordingly.\u00a0<\/strong>\r\n<ul>\r\n<li>For your ease, these are the notes on that option:\u00a0\r\n<ul>\r\n<li>Checking the <strong>Wild Card Redirect Box<\/strong> will redirect all files within a directory to the same filename in the redirected directory.<\/li>\r\n<li>You cannot use a Wild Card Redirect to redirect your main domain to a different directory on your site.<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ol>\r\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-6498\" src=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirects-to-wild-card-redirect.png\" alt=\"\" width=\"862\" height=\"158\" srcset=\"https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirects-to-wild-card-redirect.png 862w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirects-to-wild-card-redirect-300x55.png 300w, https:\/\/www.cldy.com\/support\/wp-content\/uploads\/sites\/12\/2021\/10\/cpanel-redirect-domain_redirects-to-wild-card-redirect-768x141.png 768w\" sizes=\"(max-width: 862px) 100vw, 862px\" \/><\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\" start=\"10\">\r\n<li><strong>That\u2019s it! You\u2019ve successfully redirected your domain or website!\u00a0<\/strong><\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You may notice that there\u2019s a section labeled \u201cCurrent Redirects.\u201d these are the Redirects you\u2019ve already set, and you can configure it from there.<\/p>\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<h2>Performing the domain redirection using .htaccess via <a href=\"https:\/\/www.cldy.com\/support\/help\/how-to-upload-source-code-via-file-manager\/\">file manager<\/a><\/h2>\r\n<p class=\"wp-block-paragraph\">Replace the domain name with your domain name, and add the code to the first line of your .htaccess file<\/p>\r\n<p>Method 1 (If you are replacing the domain only, all files and folders link remain)<\/p>\r\n<blockquote>\r\n<p>RewriteEngine On<br \/>RewriteCond %{SERVER_PORT} 80 [OR]<br \/>RewriteCond %{SERVER_PORT} 443 [OR]<br \/>RewriteRule ^(.*)$ https:\/\/replacewithyourdomain.com\/$1 [R,L]<\/p>\r\n<\/blockquote>\r\n<p>Method 2 (If you are replacing the domain, and also have a new website, which have different files and folders)<\/p>\r\n<blockquote>\r\n<p class=\"p1\">RewriteEngine on<br \/>Redirect 301 \/ http:\/\/replacewithyourdomain.com\/<\/p>\r\n<\/blockquote>\r\n<p>Method 3 (Same as method 2, but more commonly used)<\/p>\r\n<blockquote>\r\n<p>RewriteEngine on<br \/>RewriteCond %{HTTP_HOST} ^replacewithyourolddomain.net [NC,OR]<br \/>RewriteCond %{HTTP_HOST} ^www.replacewithyourolddomain.net [NC]<br \/>RewriteRule ^(.*)$ http:\/\/replacewithyourdomain.com\/ [L,R=301,NC]<\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n<p>Cheers to successfully implementing a domain Redirect!<\/p>\r\n<p>If you are a CLDY customer, send us a support request, and we will implement it for you at no cost.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Redirecting a domain is the process of pointing a web address or domain, including subdomains, to another domain or subdomain, for a certain purpose.\u00a0 &nbsp; Why domain redirect? You\u2019re moving websites, and you want all the traffic directed from the old domain to the new one.\u00a0 You\u2019re running ads or marketing campaigns, and you want [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[47,33,31],"doc_tag":[],"class_list":["post-5086","docs","type-docs","status-publish","hentry","doc_category-cpanel","doc_category-domain","doc_category-web-hosting"],"year_month":"2026-06","word_count":725,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"cldy","author_nicename":"loriecldy","author_url":"https:\/\/www.cldy.com\/support\/author\/loriecldy\/"},"doc_category_info":[{"term_name":"cPanel","term_url":"https:\/\/www.cldy.com\/support\/help-category\/cpanel\/"},{"term_name":"Domain","term_url":"https:\/\/www.cldy.com\/support\/help-category\/domain\/"},{"term_name":"Web Hosting","term_url":"https:\/\/www.cldy.com\/support\/help-category\/web-hosting\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/comments?post=5086"}],"version-history":[{"count":9,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5086\/revisions"}],"predecessor-version":[{"id":7944,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/docs\/5086\/revisions\/7944"}],"wp:attachment":[{"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/media?parent=5086"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/doc_category?post=5086"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.cldy.com\/support\/wp-json\/wp\/v2\/doc_tag?post=5086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}