Random Redirect Plugin

I wrote a quickie plugin based on an idea from Techcrunch, when you visit the URL it redirects you to a random post from your blog.

6 thoughts on “Random Redirect Plugin

  1. It looks like (according to Live HTTP headers) that you are using a 301 moved permanently. You might want to consider 303 See Other instead.

    From RFC 2616 re 301:
    “The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. Clients with link editing capabilities ought to automatically re-link references to the Request-URI to one or more of the new references returned by the server, where possible.”

    That doesn’t seem like the right thing for a random redirect.

    re 303:
    “The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource.”

    You might want to consider 302 Found as well. But I vote 303.

SHARE YOUR THOUGHTS