Enable XMLRPC in WordPress

How to enable xmlrpc.php in WordPress and not show 404?

In WordPress, you can enable XML-RPC through the .htaccess file. When it’s enabled, the /xmlrpc.php page will show “XML RPC server accepts POST Request Only” by default. In another way, if it’s disabled, the/xmlrpc.php page will lead to a 404 not found page.

To install WordPress:

Login to cPanel account -> Search for “Softaculous App Installer” in search bar -> Click Install WordPress.

In detail, you can refer to this link to install WordPress -> https://www.seekahost.co.uk/install-wordpress-using-softaculous-cpanel/

Once the WordPress installation completed, go back to your cPanel.


XML-RPC in WordPress

Steps to XML-RPC code in .htaccess:

Step1: Open File Manager in cPanel and navigate to public_html file.

Step 2: You can see the .htaccess file.  If in case, the .htaccess file is hidden. To make the .htaccess file visible

Click on settings in right top -> Click the check box (Show Hidden Files) -> Save.

Step 3: Open .htaccess file and add the below-shared code in .htaccess


<Files xmlrpc.php>

order allow,deny

allow from all


# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]


# END WordPress


Step 4: Click on Save.

FYI: The second part starting from #BEGIN WordPress and ends with #END WordPress will mostly be there already. In that case, you can just add the first part alone.