The Nexus
Show navigation Hide navigation
  • BLOG
  • ABOUT
    • Ego Surfing
  • PROJECTS
    • n2
    • S2ajax
    • Condo
    • ezEdit
    • FreeBlog - Air
    • Tooredo Alpha
    • Tools
    • Journlr, Again!
20 Oct 2009 | 2 min. (279 words)

Help Blog Editors Reliably Discover Your API

[Wordpress Schawg ](http://www.flickr.com/photos/71813425@N00/2913018697/"Wordpress Schawg")It seems that [tons of people](http://iphone.forums.wordpress.org/topic/xml-rpc-service-for-you-blog- cannot-be-found/) have the same complaint: the Wordpress application for iPhone does not discover their blog and, therefore, is of no use to them.
The same goes for many desktop-based applications.
I, too, spent quite a lot of time trying to figure that one out but now that I have succeeded, here is how I would recommend working on this issue if your blog is affected:

  1. Go to your blog home page and select “View source”

  2. Look for < link ref=“EditURI”… you will see that this line contains a URL ending with xmlrpc.php?rsd. Point your browser to that URL. A rather empty page should be displayed. Check its source; if it is XML, it’s all good.

  3. If the previous step fails, go to the same URL but without ?rsd. If this fails too, you need to check that you have a file called xmlrpc.php and that: a. No rewrite rule messes up your URL; b. No plugin renders it invisible – e.g. “private”

  4. If both steps work well, it is VERY likely that the blog editor you are using – or trying to use, more accurately – is choking on malformed XHTML code. It is what seems to mystify most of us.

To convince your blog editor to “discover” your blog, we are going to give it a nicely formed XHTML page:

First, make a copy of index.php: cp index.php index.o.php

Now, create a new index.php page with this code:

Of course, you need to replace all instances of nexus.zteo.com with your own blog’s information; for instance myblog.mydomain.com

Discover your blog using your favourite blog editor.

Restore your index.php: cp index.o.php index.php

Done!

Comments powered by Talkyard.

Magic: Ruby 1.8.5 + 1.9.1/Rails/Sinatra and Lighttpd

ClicDev: display last 24 hours visitors

2022 The Nexus