Accessing URL query string for a redirect to external site

  • Unknown's avatar

    Hi,
    I was wondering if it is possible to have a page designed on the wordpress.com site such that providing different query parameters to the URL could cause a redirect to some external site. For example, the following URLs could redirect thusly:
    http://oakonell.com/libridroid/book?id=123
    => http://librivox.org/123
    http://oakonell.com/libridroid/book?id=456
    => http://librivox.org/456

    I would be able to do this with some simple javascript code, to get the URL query string and issue a redirect, but that is disallowed on wordpress.com.
    Is there an official/safe way to do something like this from a wordpress.com hosted page?

    Thanks,
    Rob O’Connell

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there,

    Unfortunately this isn’t possible on WordPress.com. You would be able to achieve this with a self-hosted installation for WordPress.org, see http://en.support.wordpress.com/com-vs-org/ for more details

  • The topic ‘Accessing URL query string for a redirect to external site’ is closed to new replies.