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

    (@johnny5)

    I don’t really understand the question. You’ve given 2 set of URLs that are identical, and a third set that is different. What is SU and TU? Why is the third not working?

    Thread Starter nitinsinghal

    (@nitinsinghal)

    Sorry for my explanation.

    SU and TU are Source URLs & Target URLs.

    Actually, I want the redirection for the 3rd set of URLs.

    I do not want any redirection for the 1st & 2nd set but only want for the 3rd set. Please tell me what values should be added to the plugin to get this working?

    Currently, I am adding this, but not working:

    ^/categor1/categor2/(.*)
    https://example.com/category3/$1

    Regards

    Plugin Author John Godley

    (@johnny5)

    You need to modify the regular expression so that it only matches the URL you want. You can use https://regex101.com/ to test your expression.

    (.*) will match 0 or more characters
    (.+) will match 1 or more characters

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Regex redirection’ is closed to new replies.