New answers tagged multisite
1
In the multisite you can try the switch_to_blog() and restore_current_blog() functions.
Here the documentation: https://developer.wordpress.org/reference/functions/switch_to_blog/.
0
I don't think you have the right approach for this problem.
Here, you're talking about 4 domains, not subdomains. Subdomains are what usually replace the www in an url.
And, if you create a multisite network, then you won't need to have a multilingual plugin since you plan on having only one language per website.
Having a multisite network is useful if you ...
1
What is happening here is that many browsers now block third-party cookies (cookies from another domain).
So, if you're logged in into the WordPress' multisite admin (let say multisite.example.com) you have the cookie for it saved (the PHP COOKIE_DOMAIN constant is defined to multisite.example.com) and, if you try to log in into subsite1.example.com, the ...
3
The simplest way to create identical websites on different domains is to use the plugin Multiple Domain. This allows you to have a single WP install with one database serving two domains.
Next step is to copy this DB to a Chinese server, where create a script to copy DB and files from the main server outside of China. It should contain something as follows:
...
0
You appear to be missing some files. There should be an index.php file in that root directory for example. Try downloading a fresh copy of WordPress from http://wordpress.org/wordpress-5.6-no-content.zip and upload the files from that zip to your new server
0
You'll also need to update the URLs in the database, I run the following sql query in phpmyadmin > database > query after a migration.
swap wp_ with your db table prefix if different from default, & adjust any URLs as needed:
UPDATE wp_options SET option_value = replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR ...
Top 50 recent answers are included
Related Tags
multisite × 2903plugins × 224
customization × 153
subdomains × 148
domain-mapping × 120
redirect × 119
htaccess × 117
database × 112
users × 104
network-admin × 90
plugin-development × 84
php × 81
uploads × 71
user-roles × 68
directory × 65
themes × 63
user-registration × 63
domain × 62
wp-admin × 58
multisite-user-management × 56
functions × 54
migration × 54
theme-development × 53
login × 53
permalinks × 52