WooCommerce API Returns 401
So for whatever reason, I could get it to work on my instance on wpengine, but not my local. I’d have to assume this is something to with the way my local is configured. thanks.
So for whatever reason, I could get it to work on my instance on wpengine, but not my local. I’d have to assume this is something to with the way my local is configured. thanks.
On your olddomain.com, if you’re using an apache server, add .htaccess rewrite similar to: RewriteEngine On RedirectMatch 301 /subdirectory/(.*) http://newdomain.com/$1 This will take any olddomain.com/subdirectory/{site_slug}/ requests and 301 redirect them to newdomain.com/{site_slug}
WordPress Multisite: Login to all subsites at once
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
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
What could cause wpmu_create_blog to throw “Already Installed” Error on multisite?
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
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
Multisite,half the way
Remove multisite part from wordpress multisite upload directory