When accessing a wordpress blog, I want to force http when accessing wordpress via xmlrpc otherwise force https

The XML-RPC request is presumably to /xmlrpc.php in the root. In which case you can just make an exception for this at the very top of the .htaccess file (no need for the front-controller to be processed). For example: # Prevent remaining mod_rewrite directives to be processed RewriteRule ^xmlrpc\.php$ – [END] HOWEVER, WordPress itself is … Read more

XMLRPC error: xmlrpc.client.Fault:

Enabling PHP logging and reading logs showed the problem, thanks to Tom. // Enable WP_DEBUG mode define( ‘WP_DEBUG’, true ); // Enable Debug logging to the /wp-content/debug.log file define( ‘WP_DEBUG_LOG’, true ); // Disable display of errors and warnings define( ‘WP_DEBUG_DISPLAY’, true ); [16-Jan-2024 09:34:09 UTC] PHP Notice: PHP’s XML extension is not available. Please … Read more

Disable XML-RPC via snippet

From the xmlrpc_enabled filter docs: Contrary to the way it’s named, this filter does not control whether XML-RPC is fully enabled, rather, it only controls whether XML-RPC methods requiring authentication – such as for publishing purposes – are enabled. To fully disable XMLRPC, you might be able to use the xmlrpc_methods filter and return an … Read more

Enabling XML-RPC Accross 500 blogs

Short of logging into all the database servers remotely and updating the enable_xmlrpc option, you’re looking at a lot of work. But, I suspect you want XMLRPC to always be on. If that’s the case, create an mu-plugins folder in wp-content. Create a php file (enable-xmlrpc.php or whatever you like, it doesn’t matter), and drop … Read more