$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'); ?>Can assign a new domain to a site in a multisite?|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)

Can assign a new domain to a site in a multisite?

matteradmin10PV0评论

We set up a multisite for a client so they could choose a style. The URLs are:

  • /
  • /
  • /

Client chose style2 and purchased domain clientdomain

Any way to make clientdomain the new URL for / without re-installing Wordpress and transferring everything, etc.?

We set up a multisite for a client so they could choose a style. The URLs are:

  • http://client.ourdomain/project/style1/
  • http://client.ourdomain/project/style2/
  • http://client.ourdomain/project/style3/

Client chose style2 and purchased domain clientdomain

Any way to make clientdomain the new URL for http://client.ourdomain/project/style2/ without re-installing Wordpress and transferring everything, etc.?

Share Improve this question asked Oct 19, 2018 at 8:47 d0gd0g 1192 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Go to the Network Admin screen of the site, then Sites, then Edit the site. Put the new URL in the various locations.

Added

When you Edit the site, select the Settings tab. That will allow you to change the Home and Site URL values (which writes to the wp-options for that site). There may also be several other places to change the URL for other options settings by plugins or themes.

You may need to do a Search/Replace (I like the 'Better Search and Replace' plugin) to change URLs for media for that site. And a backup of the databases is always a good idea before changing.

Post a comment

comment list (0)

  1. No comments so far