Tuesday, April 22, 2008

Wordpress xmlrpc.php error

A Weblog Client is a desktop software that you can use to post to your Wordpress blog from your PC without the use of Web browser, via xmlrpc.php. By using a Weblog client, you are able to write posts offline and save drafts. However, some Web hosting provider block the access to xmlrpc.php, due to some security issues, at least for an older version of Wordpress.



To solve this problem, enter the following code inside your .htaccess file:
<files xmlrpc.php>
SecFilterInheritance Off
</files>

This code will instruct the Apache server to exclude xmlrpc.php file from the security filter check.

note: Don’t forget that the line ending of the .htaccess file is of type Unix (LF) before submitting it to your server, if it is a *nix based server. Otherwise, you are going to get Server Error 500.

4 comments :

  1. hello,
    my .htaccess file contains :

    <code># BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress</code>

    i have add this code
    <code><SecFilterInheritance Off ></code>

    but i have Server Error 500 on my blog, and i don't understand the note in this post!

    ReplyDelete
  2. @Ghorab: Different OS has different newline control characters (Newline).

    ReplyDelete
  3. Hi,

    I am using wordpress 2.9.2 version. I want to enable XML RPC service.
    What are the benefits after activating XML RPC service.
    What are the security concerns I should consider while enabling it.
    Is it harmful to enable it.
    Please reply me soon.


    --
    Thanks and Regards
    Uttam

    ReplyDelete
  4. @Uttam: The first thing that you should do is to upgrade your WordPress to version 3. By enabling XML-RPC, you will be able to use desktop blogging software like Windows Live Writer or Scribefire to publish posts.

    ReplyDelete