I have migrated my old asp.net website to wordpress and i now am trying to do 301 redirect gracefully .
I am trying to do it by using regular expression with this plugin.

My source url is


Target url is http://example.com/shop/awok/

I want to get the shop name and ignore everything else coming after it

My try :

/outlets/(d+)-(.*)? => /shop/$2

Another example source url http://example.com/outlets/105-big-bazar?page=453

Read more here: Regular expression to match url and ignore querystring


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: