• Resolved JDscl

    (@jdscl)


    Hi,
    I am trying to figure out how to adjust for adding /posts/ to our addresses.

    Source url: ^/%postname%/(.*)
    Target url: /posts/%postname%/

    , with regex checked does not work.

    Source url: /(.*)/$
    Target url: /posts/$1

    did something but seemed to cause long delays in fully resolving a page so it was disabled.

Viewing 1 replies (of 1 total)
  • Plugin Author John Godley

    (@johnny5)

    Redirection doesn’t support WordPress permalink variables in a URL. You may be able to create a regex pattern to match, but you’ll need to be careful not to match anything else.

    If your old structure is always /post/ and there is nothing else that matches that (unlikely) then ^/(.*)/$ should match exactly those posts. Your example above will probably create an infinite redirect.

Viewing 1 replies (of 1 total)

The topic ‘trying to redirect ^/%postname%/(.*) to /posts/%postname%/’ is closed to new replies.