Skip to main content

Switch subdomain content to primary domain and vice-versa

Comments

2 comments

  • cPRex Jurassic Moderator
    Hey there! The short answer is "no" - there's a ton of manual work involved and we don't offer that level of support through Forums or through a ticket as it's not related to any cPanel tools. The longer answer - could you use WordPress Toolkit to clone your site and get things working that way? WP Toolkit
    0
  • retechpro
    Good morning! I created a wordpress website in a subdomain, inside the main domain (which has the old website). Now, with the new website completely finished, I wanted to switch the new website content to my main domain (and the old website content to a subdmain). I also wanted the new website to keep the url of the old website, which I think depends on the domains. Can someone pleasewalk me through the steps on how I should procede to migrate the contents between the main domain and subdomain, as well as the modifications needed in the database? Thank you!

    First took the whole cpanel backup before doing anything, Then Took a subdomain backup in zip file. Took a main domain backup in zip file. Move the subdomain zip file in main domain and extract here. Move the main domain zip file in subdomain and extract here. We have moved the subdomain data into main domain and main domain data into subdomain. Now go to main domain database, check the database name in wp-config file . Then go to wp-options table and change the url. Same as for subdomain Change the url from Now we have moved the both sites and change the url. Note : Before doing anything. Took a backup first.
    0

Please sign in to leave a comment.