{"id":2930,"date":"2021-03-13T15:16:29","date_gmt":"2021-03-13T14:16:29","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=2930"},"modified":"2023-08-10T14:22:33","modified_gmt":"2023-08-10T13:22:33","slug":"promena-glavnog-domena-cpanel","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/promena-glavnog-domena-cpanel\/","title":{"rendered":"Changing the main domain in cPanel"},"content":{"rendered":"<p class=\"wp-block-paragraph\"><em>Thank you for using this guide, you are significantly helping support work better and faster and helping customers who need help for which there is no guide.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><em>Note: If this seems complicated to you, the advice is not to change the domain. <\/em><\/strong>Support cannot help with domain change and site and account issues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Preparing hosting and domain for change<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First of all, you need to direct the new domain to hosting by changing the nameserver. If you bought the domain from us, you can see it <a href=\"https:\/\/www.webhostingsrbija.rs\/en\/izmena-nameservera\/\">THIS<\/a> instruction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the domain you want to set as the main domain has been added to cPanel if subdomain\/addon\/aliases you must first delete it from there before it can be set as the main domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are two scenarios:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You have a site on your current main domain and you want it to stay on the new domain as well. For such a thing, read the instructions for <a href=\"https:\/\/www.webhostingsrbija.rs\/en\/promena-domena-na-wordpress-sajtu\/\" target=\"_blank\" rel=\"noreferrer noopener\">domain change<\/a> on the site, and then follow the instructions for changing the domain.<\/li>\n\n\n\n<li>You have a site on your current main domain and you want to keep it on that same domain, but you still want to change your main domain.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">2.1. Enter <a rel=\"noreferrer noopener\" href=\"https:\/\/www.webhostingsrbija.rs\/en\/reset-cpanel-lozinke-ili-auto-login-na-cpanel\/\" target=\"_blank\">cPanel<\/a> and in the File Manager, create a new folder with the name of the current main domain.<br>2.2. Click on Settings in the upper right corner and check show all hidden files and folders.<br>2.3. Go to public_html and click on <strong>select all<\/strong>(only files and folders from the site) and then on <strong>Move<\/strong> and in the popup window, enter the folder you created a little while ago as we mentioned in 2.1.<br>2.4. now follow the instructions to change the domain a <em>after<\/em> Therefore, follow point 2.5.<br>2.5. Add the old main domain as <a rel=\"noreferrer noopener\" href=\"https:\/\/www.webhostingsrbija.rs\/en\/kako-da-dodate-novi-domen-u-cpanel\/\" target=\"_blank\">Addon domain<\/a> and Root directory to be the folder you created from point 2.1.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Change main domain<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The first thing you need to do is log in to the client panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Help with accessing the client panel can be found at <a href=\"https:\/\/www.webhostingsrbija.rs\/en\/pristup-klijent-panelu\/\" target=\"_blank\" rel=\"noreferrer noopener\">this instruction<\/a>.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After accessing the client panel click <a href=\"https:\/\/cp.webhostingsrbija.rs\/\" target=\"_blank\" rel=\"noreferrer noopener\">HERE<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You will see a list of all hosting accounts you have with us and their main domains. Click on the main domain you want to change. And then to the option to change the main domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then a field to change the main domain will appear to you as in the image below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"381\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/03\/Screenshot-15-1024x381.png\" alt=\"\" class=\"wp-image-2931\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/03\/Screenshot-15-1024x381.png 1024w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/03\/Screenshot-15-300x112.png 300w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/03\/Screenshot-15-768x286.png 768w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2021\/03\/Screenshot-15.png 1299w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the first field, enter the current main domain without www and without http means a clean domain. And in the second field, enter the new domain you want to set as the main one, also without www and without http.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When you click change it will be changed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Not changed<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">One of the most common reasons why it has not been changed is that the new domain has already been added to cpanel as a subdomain\/addon\/aliases and thus it is not possible to duplicate the domain in cPanel and it has not been added. <em>You need to delete the new domain from cPanel in order to set it as the main domain.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If it still hasn&#039;t been changed and hasn&#039;t been added to cPanel as an addon\/aliases\/subdomain, contact support for help.<\/p>","protected":false},"excerpt":{"rendered":"<p>Hvala vam \u0161to koristite ovo uputstvo time zna\u010dajno poma\u017eete da podr\u0161ka bolje i br\u017ee radi i pomogne klijentima kojima je potrebna pomo\u0107 za \u0161ta ne postoji uputstvo. Napomena: Ukoliko vam ovo deluje komplikovano savet je da ne radite promenu domena. Podr\u0161ka ne mo\u017ee da pomogne oko problema nastalih promenom domena i oko sajta i naloga. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2932,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[20],"tags":[],"class_list":["post-2930","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=2930"}],"version-history":[{"count":1,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2930\/revisions"}],"predecessor-version":[{"id":5673,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2930\/revisions\/5673"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media\/2932"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=2930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=2930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=2930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}