xmlrpc.php gives 404 error
-
https://independenthostels.co.uk/xmlrpc.php
What it should return: “XML-RPC server accepts POST requests only.”
What it does return: 404 error page
This results in third-party programs such as Jetpack not being able to connect properly with our site.
I’ve seen other threads on this issue, but they all either turn out to be an unrelated solution or finish with a vague “We contacted our hosts and they sorted it out”. We run our site on a VPS with access to cpanel and WHM so would love to know what it is these hosting companies change.
What we’ve tried so far:
We tried temporarily disabling mod_security but that didn’t seem to make a difference, and we couldn’t find any mention of xmlrpc.php in the security rules.
We noticed a section of our .htaccess file that read…
# Prevent access to xmlrpc.php <Files xmlrpc.php> order allow,deny deny from all </Files>
…but when we changed it to…
# Allow access to xmlrpc.php <Files xmlrpc.php> order deny,allow allow from all #allow from wordpress.com </Files>
…it still didn’t make any difference.
Does anyone have any other idea on how to fix this, either on a coding or on a hosting level?
- The topic ‘xmlrpc.php gives 404 error’ is closed to new replies.