• Resolved HabD

    (@habd)


    Hi, I used https://regex101.com to get my expression running. The goal ist to substitute a part of the url for all post of a custom post type and redirect them to a new custom post type.

    to find the source URLs I use:

    \/old_old\/(.*) 

    and to direct it I use:

    /acf-cb-marke/$1

    According to Regex101 this works fine. But when I paste the first term into a Redirection directive it says:

    • The source URL should probably start with a /
    • Remember to enable the “Regular Expression” option if it is a regular expression.

    Do I have to delete the escaping backslashes though the Reg101 says they are needed?

    And the second seems important – but I do not find any option to set (in the German version of the plugin). Using: Version 5.3.10 

    Also the “$”-sign gets an error hint:

    • Your target URL contains the invalid character %(invalid)

    Any yes, it is “$” and it quotes a “%” ???

    Where is the error?

    Kind regards, Martin

    • This topic was modified 2 years, 11 months ago by HabD.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘My working regex gets altered…’ is closed to new replies.