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
- How to redirect all HTTP requests to HTTPS
- Default .htaccess file for WordPress?
- Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
- htaccess problem after saving Settings
- File and directory permissions
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- How to redirect url requests to https? [closed]
- Isolating WordPress to a subfolder
- Error:406 not acceptable
- What is the role of .htaccess file in WordPress?
- Remove File Extension for Page Outside of WordPress
- How can I code my plugin to safely modify .htaccess?
- different child theme for subdomain
- How do I edit the htaccess file to optimize my website?
- Which HTTP headers to use for subdomain embedding?
- .htaccess rewrite rule puzzle
- Site searches by Python for non-existent assets
- WordPress On subfolder
- Override htacces rule only for specific directory
- How To Allow Only Specific User Agent To Access a URL?
- browser caching not disabled after disabling in .htaccess
- How to ignore folder in site root while accessing a URL
- Htaccess redirect after changing Language URL format
- How can I enable keep alive (Not accessing to Apache)
- What is the right way to redirect all traffic to HTTPS?
- WordPress installed in root, need second in subdirectory with different domain
- htaccess has broken my site
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- TimThumb & htaccess : clean url
- Rules in .htaccess only if the requested URL is /wp-admin
- What to write in the htaccess in order to detect browser language and point accordingly?
- Htaccess file isn’t redirecting http sub-pages to https––they display 404 error instead, tried many solutions and none work
- WordPress keeps redirecting subpages without http to https homepage after switch
- Only Allow Front End Access
- .htacess rewrite condition: page to seconddomain/page
- .htaccess RewriteCond excluding directories does not work when there is an .htaccess or php.ini in subdirectory
- Separate 404 page for WordPress in subfolder
- ReDirect subfolder link to another sub-folder and force SSL
- Does WP suppresses .htaccess if permalinks are disabled?
- WordPress .htaccess file gives issues with subdirectory
- Need help rebuilding lost htaccess file
- W3 Total Cache CSS & JS files GZip issues [closed]
- WP Super Cache unable to locate cache file for only the homepage
- Cannot login to WordPress site after changing .htaccess for security purposes
- WordPress permalink, stop redirection
- How to rename index.php to home.php
- Strange behaviour of is_user_logged_in() and get_current_user_id()
- add_rewrite_rule to remove /category/ from permalink
- .htaccess Non-‘www’ to ‘www’ Subdomain Redirection Only Works for Homepage
- Non WordPress Folder in a WordPress Site
- Redirect to new domain with .htaccess [closed]
- Can’t access htaccess [closed]
- Htaccess rewrite based on query string, not working [closed]
- Redirect all subdomains to root domain
- Change root directory
- .htaccess redirect not properly working [ ?utm_source=]
- How to execute WordPress as though it is in the root folder while it is installed in a subdirectory?
- Htaccess maintenance page rules that actually work with WordPress?
- How to allow only vpn access to dashboard on Bitnami WordPress by IP address restricting
- Blocking wp-login in HTACCESS has also blocked password protected pages
- htaccess redirect to path
- Non-wordpress subdomain on Multisite Installation
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- Downloading zip or tar.gz inside WordPress installation?
- Unable to find ‘full-path’ to my 404.php file
- Rewrite rules and maintain URL
- Use htaccess to redirect wordpress non-existent page to homepage
- Subfolder renaming
- Targeting .htaccess file with file_put_contents
- Redirect Loop in Regex Moving to HTTPS
- .htaccess file changes disappear
- WordPress login bug. Need an emergency solution
- .htaccess and virtual host configuration for WP in its own directory
- 403 forbidden due to .htaccess?
- Issue after changing permalink structure [duplicate]
- Where is the htaccess in wordpress.com hosting?
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- Url redirection using htacess for my website
- How To Add CSP frame ancestors in WordPress Website? [closed]
- How do I modify each instance of setcookie?
- How to I serve the static HTML file at the root directory in a wordpress site?
- Why is this line of code Wrong in every WordPress .Htaccess security article?