Redirect wordpress URL with query string

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

Leave a Reply

Your email address will not be published. Required fields are marked *