Need to make pretty URLs using Transform Rules

Hello,
I am trying to make user friendly URLs using Transform rules, need urgent help:

https://domain.com/one-folder/getdata?id=00000 or if the URL is https://sub.domain.com/one-folder/?getdata=00000 to be transformed into https://sub.domain.com/one-folder/00000/* (* can be anything that will be attached to URL after).

Thanks in advance.