$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>subdomains - Multisite - Looking for ideas to best manage a main site change|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

subdomains - Multisite - Looking for ideas to best manage a main site change

matteradmin10PV0评论

I run about 5 sites on a multisite installation, the main one being under my main domain.

What I'm currently in the process of is creating a brand new site (with content changes etc) which will be on my main domain.

So I set about creating it as a new site with a subdomain. It's now finished and ready to go live. So in essence, I want to move newsite.domain to domain and move the existing site at domain to oldsite.domain.

I had no idea at the time that this would be such a pain in the ass to do.

Changing the sites shouldn't be a stretch for my skills but it's got me thinking about the best way to manage the sites. I have a few domains mapped for other sites and a couple of subdomains.

Whilst I'm going through this change I thought I'd ask others how they manage theirs and get some input. I've read every post and article on the net about how to change the domain of a multisite etc but nothing has quite answered my management questions.

To save the same thing happening in the future if I want to change the site, is it best to have my main domain for the Wordpress installation as a 'ghost' domain or one I don't use and have my main domain mapped using the plugin? This seems like the best way to be able to easily switch the site in the future (by changing the URL in the settings).

My main domain is also the main domain my hosting is running on, will this cause any issues or is there anything I need to look out for?

If I change the main domain of multisite, will it cause issues with my other sites running off subdomains of the current main domain?

Thanks for the time, any input/insight is valued. I've no idea the best way to do this right.

I run about 5 sites on a multisite installation, the main one being under my main domain.

What I'm currently in the process of is creating a brand new site (with content changes etc) which will be on my main domain.

So I set about creating it as a new site with a subdomain. It's now finished and ready to go live. So in essence, I want to move newsite.domain to domain and move the existing site at domain to oldsite.domain.

I had no idea at the time that this would be such a pain in the ass to do.

Changing the sites shouldn't be a stretch for my skills but it's got me thinking about the best way to manage the sites. I have a few domains mapped for other sites and a couple of subdomains.

Whilst I'm going through this change I thought I'd ask others how they manage theirs and get some input. I've read every post and article on the net about how to change the domain of a multisite etc but nothing has quite answered my management questions.

To save the same thing happening in the future if I want to change the site, is it best to have my main domain for the Wordpress installation as a 'ghost' domain or one I don't use and have my main domain mapped using the plugin? This seems like the best way to be able to easily switch the site in the future (by changing the URL in the settings).

My main domain is also the main domain my hosting is running on, will this cause any issues or is there anything I need to look out for?

If I change the main domain of multisite, will it cause issues with my other sites running off subdomains of the current main domain?

Thanks for the time, any input/insight is valued. I've no idea the best way to do this right.

Share Improve this question edited Aug 13, 2018 at 8:32 Wristy Manchego asked Aug 13, 2018 at 8:07 Wristy ManchegoWristy Manchego 112 bronze badges 2
  • I'll come back to this post soon with some better info but for now have you looked into the Duplicator plugin? en-gb.wordpress/plugins/duplicator – wharfdale Commented Aug 13, 2018 at 10:11
  • Appreciated. I've used plugins like it but I'll dig further into this feature - Duplicate a live site to a staging area or vice versa - to see if there's anything there. – Wristy Manchego Commented Aug 13, 2018 at 13:01
Add a comment  | 

1 Answer 1

Reset to default 0

I would echo @wharfdale's answer. Using the Duplicator plugin might be the easiest way to go.

https://en-gb.wordpress/plugins/duplicator/

Post a comment

comment list (0)

  1. No comments so far