{"id":999957027,"date":"2022-01-28T07:02:15","date_gmt":"2022-01-28T07:02:15","guid":{"rendered":"https:\/\/f60host.com\/support\/?p=999957027"},"modified":"2022-01-28T07:02:15","modified_gmt":"2022-01-28T07:02:15","slug":"how-to-change-the-primary-domain-in-cpanel","status":"publish","type":"post","link":"https:\/\/f60host.com\/support\/how-to-change-the-primary-domain-in-cpanel\/","title":{"rendered":"How to Change the Primary Domain in cPanel"},"content":{"rendered":"\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/04\/change-the-primary-domain-in-cPanel-by-f60-host.jpg\"><img decoding=\"async\" src=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/04\/change-the-primary-domain-in-cPanel-by-f60-host.jpg\" alt=\"How to Change the Primary Domain in cPanel\" class=\"wp-image-999960787\" title=\"How to Change the Primary Domain in cPanel\"\/><\/a><\/figure><\/div>\n\n\n\n<p id=\"change-the-primary-domain-in-cpanel\"><span style=\"font-weight: 400;\">cPanel was originally designed with the assumption that a new primary domain would indicate a new site. It&#8217;s simple to <strong>change your primary domain<\/strong>, but keep in mind that <\/span><b>cPanel software <\/b><span style=\"font-weight: 400;\">only changes the primary domain as listed in certain places in <\/span>cPanel<span style=\"font-weight: 400;\">, not within the site files. If you are new, you may be surprised by just how much you will need to manually edit. <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">We cover what does and does not automatically change below, but if you\u2019re new to cPanel the breakdown is not intuitive. Take your time, make backups beforehand, and only change your <\/span>primary domain<span style=\"font-weight: 400;\"> if you need to. To avoid errors, you should register your new <\/span><a href=\"https:\/\/f60host.com\/domains.php\"><b>domain name<\/b><\/a> <span style=\"font-weight: 400;\">before switching your primary domain. Your <\/span><b>old primary domain\u2019s site files<\/b><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">will be in the same place as the <\/span>new primary domain\u2019s site files <span style=\"font-weight: 400;\">will go. If you want to create a <\/span><b>new site<\/b><span style=\"font-weight: 400;\">, you must move or remove those old files.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-does-and-does-not-automatically-change\">What Does and Does Not Automatically Change<\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Before we get started on how to change your main domain, it&#8217;s important to understand what changes and what doesn&#8217;t. When you change your primary domain, it affects your email, website files, subdomains,<\/span> <span style=\"font-weight: 400;\">and search engine<\/span> ranking<span style=\"font-weight: 400;\">. <\/span>Previous Domain Name:<span style=\"font-weight: 400;\"> The previous main domain name on the account will be removed.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\"> If you still need that previous main domain, you will need to log into your cPanel and add it as either a parked or <\/span><b>addon domain name<\/b><span style=\"font-weight: 400;\">. Once the domain name has been changed, you will log into your <\/span>cPanel<span style=\"font-weight: 400;\"> via<\/span> <b>https:\/\/domainB.com\/cpane<\/b><span style=\"font-weight: 400;\">l instead of <\/span><b>https:\/\/<strong>domainA<\/strong>.com\/cpanel.<\/b><\/p>\n\n\n\n<p>Subdomains: <span style=\"font-weight: 400;\">All of your<\/span><b> subdomains.domainA.com<\/b><span style=\"font-weight: 400;\"> will turn into <\/span><b>subdomains.domainB.com<\/b><span style=\"font-weight: 400;\">. For example, <\/span><b>sales.domainA.com<\/b><span style=\"font-weight: 400;\"> will now be <\/span><b>sales.domainB.com<\/b><span style=\"font-weight: 400;\">. <\/span><\/p>\n\n\n\n<p>Search Engine Rank:<span style=\"font-weight: 400;\"> If you are changing your website\u2019s domain name, keep in mind that this could affect your rank in <\/span><b>search engines<\/b><span style=\"font-weight: 400;\">. <\/span><b>Google<\/b><span style=\"font-weight: 400;\"> recommends that you set up a <\/span><b>301 redirect \u2014 <\/b><span style=\"font-weight: 400;\">especially when keeping the old domain, which lets search engines know the website is permanently moving.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-about-wordpress-and-other-software\">What About WordPress and Other Software?<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">If you&#8217;re using a content management system or other website software (such as WordPress), keep in mind that changing the main domain may only be the beginning of the changes you&#8217;ll need to make. Please double-check the documentation for your software&#8217;s domain name changes. Our instructions for altering the site URL and home settings in WordPress can be found here.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"can-i-remove-the-primary-domain-in-cpanel\">Can I Remove the Primary Domain in cPanel?<\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">A principal domain is required for cPanel to work. You don&#8217;t have to use the principal domain, but it must exist in order for cPanel to function. If you need to use a placeholder domain, simply put a random phrase, random numbers, or a domain you do not own. You can still log in to your account using your server\u2019s hostname or another domain name, and can even work on your site in the browser if you use a hosts file modification.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"to-change-the-primary-domain-in-cpanel-account\">To Change the Primary Domain in cPanel Account<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>To change the primary domain login to <strong>WHM<\/strong> using the root user and root password:<\/li><li><span style=\"font-weight: 400;\">Click the <\/span><b>List Accounts<\/b><span style=\"font-weight: 400;\"> option under the Account Information section.<\/span><\/li><li><span style=\"font-weight: 400;\"> Click the \u2018<\/span>+<span style=\"font-weight: 400;\">\u2018 icon beside the domain you want to change.<\/span><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/02\/Change-the-Primary-Domain-in-cPanel.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/02\/Change-the-Primary-Domain-in-cPanel-1024x533.png\" alt=\"Change the Primary Domain in cPanel\" class=\"wp-image-999959202\" width=\"768\" height=\"400\"\/><\/a><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Click the <b style=\"font-size: revert;\">Modify Account button<\/b><span style=\"font-weight: 400;\">.<\/span><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Enter the <b style=\"font-size: revert;\">new domain name <\/b><span style=\"font-size: revert;\">in the <\/span><b style=\"font-size: revert;\">Primary Domain field<\/b><span style=\"font-size: revert;\">.<\/span><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large is-resized\"><a href=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/02\/Change-the-Primary-Domain-in-cPanel-F60-Host.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/f60host.com\/support\/wp-content\/uploads\/2022\/02\/Change-the-Primary-Domain-in-cPanel-F60-Host-1024x481.png\" alt=\" Primary Domain in cPanel\" class=\"wp-image-999959204\" width=\"768\" height=\"361\"\/><\/a><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li><span style=\"font-weight: 400;\"> Scroll down to the end and click the <\/span><b>Save button<\/b><span style=\"font-weight: 400;\">.<\/span><\/li><\/ul>\n\n\n\n<p><span style=\"font-weight: 400;\">After making this change, you may find that you want to keep the old primary domain&#8217;s email addresses. If this is the case, the solution is straightforward. Using an alias, park the old domain on the new one and create new email accounts under the old domain name in cPanel&#8217;s email accounts section. You can continue to use your existing email accounts while also changing the primary domain. <\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You have successfully changed this account&#8217;s primary domain! <\/span><span style=\"font-weight: 400;\">Our Support Teams are staffed with talented admins being well in a variety of <\/span><a href=\"https:\/\/f60host.com\/shared-hosting.php\"><span style=\"font-weight: 400;\">web hosting<\/span><\/a><span style=\"font-weight: 400;\"> technologies, particularly those discussed in this article. If you are a Fully Managed VPS customer and are unsure about following the steps outlined, we are happy to assist you.<\/span><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>cPanel was originally designed with the assumption that a new primary domain would indicate a<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":999960787,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-999957027","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-panel-hosting"],"_links":{"self":[{"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/posts\/999957027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/comments?post=999957027"}],"version-history":[{"count":0,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/posts\/999957027\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/media?parent=999957027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/categories?post=999957027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/f60host.com\/support\/wp-json\/wp\/v2\/tags?post=999957027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}