1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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