Migration of Multisite WordPress site from http to https

Looks like there is a missing rule in your htaccess file, try RewriteEngine On RewriteBase / RewriteRule ^index.php$ – [L] # ensure access to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/wp-json/ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ – [L] #ensure you can access the network … Read more

User Roles in multisite – odd behavior

Nikolay Can’t comment on my own question, so I guess that giving a loose answer is the best and only way to get back to you. How I’m getting the roles: $user = get_user_by(‘login’, ‘newuser’); $user_meta = get_userdata($user->ID); $user_roles = $user_meta->roles; I do not use any plugin. Fresh WP multisite. I also tried a small … Read more

Create new multisite from existing and keep domain?

Yes, you can set up multiple installs. You do need to be careful that you don’t ever create anything in the “parent” multisite (at example.com) that has the same slug as the folder you place the “child” multisite (at example.com/bananas) – so in the bananas example, never create a Post, Page, Category, Tag, etc. with … Read more

Send data from one WP instance to another and process it there

I solved it with mmm’s hint and created a simple custom REST endpoint. WP1 (Frontend, sending the data): function send_form_data_to_backend($form_values) { // add secret-key $form_values[‘secret_key’] = “abcde123″; $url=”http://backend.example.com/wp-json/example/v1/save/”; $response = wp_safe_remote_post( $url, array( ‘method’ => ‘POST’, ‘timeout’ => 15, ‘redirection’ => 5, ‘blocking’ => true, ‘headers’ => array(), ‘body’ => $form_values, ‘cookies’ => array() ) … Read more