Forum Replies Created

Viewing 1 replies (of 1 total)
  • First you need to understand the delimiter of the regex is changed from / to @ and that it’s concatenated later, when the check for the URL is made. This means you don’t need to provide it in the input field and you don’t need to escape the / character.

    Let’s take an example. You have a post that has the URL path /old/test. Also, there are places on the internet or your website that link it as /old/Test. You want to redirect both to /new/test.

    First you need to enable the regex mode via the checkbox in the editor.

    Second, you need to say that you want to match case insensitive. For this you need to start your match string with (?i). The result should look something like:

    (?i)/old/test

    Third, optionally you can make the match to be exact by adding start and end modifiers, like so:

    ^(?i)/old/test$

Viewing 1 replies (of 1 total)