Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you tried using a regular expression instead of simple matching. Here is the link to the doc:

    https://urbangiraffe.com/plugins/redirection/

    Within that doc, there is an example of how you capturing a group of characters from the original URL and use it to build the new URL:

    A couple of examples:

    /blog/(.*) => /$1
    This will match any URL that starts with /blog/, and will redirect it to the same URL but without /blog/. For example, /blog/2006/10/01/mypost will be redirected to /2006/10/01/mypost.

    /2006/month_(\d+)/(.*) => /2006/$1/$2
    This will match any URL that starts /2006/month_, and is then followed by a number. This will be redirected to the same URL, but without month_. For example, /2006/month_1/something will be redirected to /2006/1/something.

    To replace a single dash in a URL with a space:

    /tags/(.*?)-(.*?) => /tags/$1%20$2

    I did exactly that and it takes precedence over all other redirections. I read reference about ordering redirection and I don’t see a way to do it. I am using version 2.6.6.

    In my attempt of ordering the redirections, I put the wild card match Source:.* Target:/ in group2 which appears below other redirections in group1. Yet, if I enable the wild card match, more specific redirections stop working.

    Any idea?

    Thanks.

    How do I access the new “Edit redirect position” function? I am using version 2.6.6.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)