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 also likely to try to redirect to HTTPS, so .htaccess might not be enough. (Also bear in mind that 301 – permanent – redirects are cached, so any relevant caches will also need to be cleared.)
Related Posts:
- Stop WordPress and Plugins from Overwriting .htaccess
- htaccess https redirect from www to non-www
- Globally force SSL on all pages
- Admin-Ajax.php, SSL, Non-SSL
- How disable SSL redirect for specific URL?
- How to modify the .htaccess to force ssl on login and admin pages
- Attach to wp-login.php and xmlrpc.php
- Block only external access to wp-cron.php on OpenLiteSpeed
- XMLRPC filtering through htaccess not working
- Redirect http to https does not work on subdir where another instance of WordPress installed
- Transfer to HTTPS – mixed content on main page only [closed]
- Https Redirect infinite loop in Mobile browsers
- 403 error on admin login page
- Adding a SSL Certificate
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- Forcing HTTPS with WordPress on AWS
- fix 302 redirection error on https
- Azure WordPress deny access to xmlrpc
- Mixed Content Page: requested an insecure stylesheet error
- adding rewrite rules in .htaccess
- Static raw HTML page
- Plugin to edit htaccess file
- .htaccess file redirecting to parent directory
- Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
- Permalinks not working on second wordpress installed in a subdirect
- Rewrite rule not working
- Change wp-content without changing the name of the folder
- Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
- How to restrict access to wp-content, wp-includes and all sub-folders
- .htaccess redirects disappeared after re-saving permalinks
- Is it possible to dynamically redirect URL using htaccess?
- Which WordPress scripts need to be executable for a fresh installation?
- Keep getting 401 error from WordPress on AWS Lightsail
- Setup Permanent 301 Redirects after moving to Https [closed]
- Force www to non-www on a subdomain in WordPress?
- WordPress multilingual website domain and folders
- https multiple redirects
- WP site URL changed to have HTTPS but still homepage does not redirect
- How to properly force https and www on multisite with Apache HTAccess
- need a help for modify .htaccess rule [closed]
- Corrupt .htaccess file
- .htaccess ‘down for maitenance’ and WordPress
- Which is better: 301 Redirect in my .htaccess file or a plugin like Redirection?
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- When is it necessary to have Header unset Vary in .htaccess
- Fixing custom 404 pages broken by WordPress in a subdirectory
- redirect the homepage using .htaccess outside of WordPress
- I can’t access the admin panel links as I click it shows 403 error
- How to hide login form if basic authentication fails?
- Redirect an old link to new site homepage [closed]
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- .htaccess RewriteRule always overwritten – how to prevent?
- Redirect old domain with query paramaters
- What might be removing my redirects from my htaccess?
- My Homepage Suddenly Disappeared and I Can’t Get It Back
- How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- How do I setup htaccess for 301 redirects, post Joomla to WordPress migration? [closed]
- Hide a subdirectory on my website hosting
- Can’t access WP site over WiFi network
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- How to rewrite 404 to home page using htaccess?
- I am new in word pres my font awesome is not allow
- htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- “Oops.” error on an html file directly uploaded to a subdirectory of my WordPress site
- WordPress permalinks confusion
- VServer/Rootserver/Shared Hosting: Multiple WordPress installations each having their unique domain?
- Sub domain URL slash / missing after domain and before Post & page slug
- Basic Auth .htaccess on wp-login, but allow logout from woocommerce
- Why my WordPress Site Asking for HTTP Authentication?
- I need to make one folder private
- WordPress site not forcing from http to https instead getting redirected too many times
- htaccess redirects invalid request to home page not 404
- Redirect HTTP request to HTTPS request
- Force HTTPS for mapped domain pointing to wordpress domain
- WordPress How to rewrite URL for custom pages
- How can I restrict access, by IP, to the `wp-admin` folder/Dashboard?
- How to properly give WordPress its own directory
- WordPress permalinks is wrong. It wants me to change my htaccess file. But then site crashes
- How to move wordpress website from hosting account to localhost
- Question with .htaccess and wp-login.php prevention
- WordPress RSS feed to external XML
- Does htaccess password keep search engines out?
- I can access subdirectory, but not files within it
- htaccess old php pages to new wordpress ones
- different CNAME to corresponding subfolders
- block seacrh engines for all pages EXCEPT homepage
- Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
- How to change wordpress news root url
- Problem with All in one WP Migration – only works the home page
- htaccess – Server Subdirectory With Different Name Than URL Subdirectory
- How can I stop WordPress from catching URL’s for static pages that I save on my server
- WordPress Media Library rendering blank image tiles
- Subfolder install not working
- Redirect loops in Bing holding my sites back
- Permalinks not working on debian with OVH
- How can I make /wp-admin the root url?
- WordPress website hacked – index.php file modified
- Why is this line of code Wrong in every WordPress .Htaccess security article?
- WordPress Subfolder link to page