Ready to get started?Download WordPress


Redirect to post id (2 posts)

  1. darkhouse
    Posted 1 year ago #

    I'm looking to redirect from something like /2010/06/some-post to /some-post/12345

    So, I don't have the post id in the original url, but the new one requires it. What I assumed would happen is the redirection plugin would find the post using the old format, and then make certain things about the post available to allow me to redirect to it with the new format. Something like this:

    /(\d+)/(\d+)/(.*) => /$3/{id}

    Is that possible? I can't see in the docs where I can do anything like that.


  2. jrf
    Posted 1 year ago #

    Sorry, can't be done with the Redirection plugin. There are no auto-replace variables available.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.