Redirect to post id (2 posts)

  1. darkhouse
    Posted 2 years 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 2 years 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

  • Redirection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.