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