Support » Plugin: Redirection » [Plugin: Redirection] Regex to Consolidating 301 Redirects

  • Resolved TheHigherEdCIO

    (@thehigheredcio)


    I have about 35 301 redirects from an permalink change a whielago I would like to consolidate into a single redirect using Regex.

    Source URL format: /2011/02/my-post.html
    Target URL fromat: /2011/02/23/my-post/

    I need a Regex to match the source to the target where there is now a date and the .html has been replaced with ‘/’

    The source part seems clear: ‘/(\d*)/(\d*)/(.*)’ or ‘/(\d*)/(\d*)/(.*).html’
    But I am struggling on the target which needs to look for a new data element and match on the year, month and postname

    http://wordpress.org/extend/plugins/redirection/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Redirection] Regex to Consolidating 301 Redirects’ is closed to new replies.