When the primary domain is changed, it's possible that the new primary domain will load the incorrect site, or not load a site at all.
When the primary domain is changed, the site files are not moved automatically. The old primary domain's files will still be in public_html, but the new primary domain will still load public_html, as the primary domain will always load public_html as its document root.
This can be corrected by moving the site files for the primary domain to public_html.
Related Article
Move Site Files
- Log into the cPanel
- Navigate to File Manager, located in the Files section
- Locate and rename the current
public_html
topublic_html.$DATE
REPLACE: Change$DATE
to the present date.
NOTE: This lets you keep a backup of the site used for the previous primary domain. If you add the old primary domain back to the account as an addon domain, the site files should be moved to the document root for the addon domain instead. - Create a new folder named
public_html
EXAMPLE: - If there are site files already on the account for the new primary domain
- Copy the files of the domain from the old document root to the newly created
public_html
- Copy the files of the domain from the old document root to the newly created
- If there are no site files for the new primary domain
- If the site has already been created, upload the site files to
public_html
- If it is a completely new site, you can now begin building your site
TIP: Website software, such as WordPress, can be installed using Softaculous.
- If the site has already been created, upload the site files to