I am trying to figure out how to redirect this URL

https://example.com/courses/course-name/?purchase-course=5428

to this

https://example.com/courses/course-name/

Where 5428 is the course id

Read more here: Redirect wordpress URL with query string


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: