Help with redirect Regex

Discussion in 'Content Management' started by steeltape, Jan 24, 2014.

  1. #1
    I wanted to change from

    /%year%/%monthnum%/%postname%/
    to
    /%postname%/%post_id%/

    would this regex below be correct?

    Source URL: /(\d*)/(\d*)/(\d*)/([A-Za-z0-9-]*)
    Target URL: /$4/(\d*)

    someone said that it would run the risk of replacing something like site.com/category/parent/child to /postname/post_id.
    if that is the case then what should I do to avoid that
     
    steeltape, Jan 24, 2014 IP