WordPress in a Subdirectory and XML-RPC

Hey there! I'm currently working on a CLI tool to deploy WordPress apps to DigitalOcean. Check it out! It's free and open source.

Quick Tip! If you’re experiencing problems with the WordPress mobile application because your WordPress installation is in a subdirectory (for example wordpress) you should copy the xmlrpc.php file to your website root so it’s accessible via example.org/xmlrpc.php and edit the boostrap path in that file to point to your subdirectory:

/** Include the bootstrap for setting up WordPress environment */

Change the include path to your subdirectory, in our case it’s wordpress:


That should do the trick, although I’m still not sure why it doesn’t work out of the box, since the path to the XML-RPC discovery in the head section of the homepage is correct. Anyways, this might be a temporary solution to internal server errors (500) and not found errors (404). Enjoy :)

About the author

Konstantin Kovshenin

WordPress Core Contributor, ex-Automattician, public speaker and consultant, enjoying life in Moscow. I blog about tech, WordPress and DevOps.