After performing a Website Copying from WordPress website example.com to example.net, the copied one (example.net) redirects to the main domain (example.com).
As the Website Copying function creates the exact copy of the site, the WordPress URL and wp-config.php file are not changed.
Note: The best way to copy a WordPress site in order to avoid the issue described in this article is to use WordPress Toolkit Cloning feature. WordPress Toolkit will handle the changes automatically. In case cloning is not an option, proceed with the following resolution:
After copying a website and its database the following needs to be done:
1. Connect the copied website to the appropriate database:
b) Retrieve the Database name, user, and the password from the copied website at Domains > example.net > Databases:
c) With that done, go to Domains > example.net (copied website) > File Manager > httpdocs > and open the wp-config.php file;
DB_USER , and
DB_PASSWORD with the information taken on step 1-b;
2. Define the address of the new website in WordPress settings through
WP_SITEURL variables in the
wp-config.php file according to this guide.
3. Go to Domains >
<copied_website_name> > WordPress
4. Update Access Credentials if it is required.
Note: Some plugins can be configured to redirect the website to the other website. In this case, disable plugins one-by-one and check the website availability.