I searched for this question but only came across very specific answers that I couldn't tailor to my requirements.
My URL now looks like this: https://example.eu/?action=changepassword
and I want it to look like this: https://example.eu/changepassword
so text ?action=
gets deleted.