I have a regex right now on a WordPress site using Redirection plugin:

Source URL:
^/category/(.+)

Target URL:
/video/$1

And that’s working fine. Now, I need to add ?filter=views to the end of the “Target URL”, but I can’t seem to find a way to do it.

Desired redirection would be:

site.com/category/video-category-name -> site.com/video/video-category-name?filter=views

Any one that can help me out? Thanks!

Read more here: Regex to append a variable to URLs


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: