htaccess configuration to rewrite urls with conditions.

Job ID: 32130123

Budget: $30 – $250 USD

Hello, I need to create a htaccess file/s to rewrite some URLs in order to receive them in a files to process.
things what i need:

if the URL is https://sample.site.com/api/v3/authorization (specifically this one and with no slash)
it must go to: https://sample.site.com/api/v3/authorization/index.php

if the URL is https://sample.site.com/api/v3/loginToken (specifically this one and with no slash)
it must go to: https://sample.site.com/api/v3/loginToken/index.php

if the URL is https://sample.site.com/api/v3/customers (specifically this one and with no slash)
it must go to: https://sample.site.com/api/v3/customers/index.php

if the URL is https://sample.site.com/api/v3/customers/address(at)test.com (with an email after the slash)
it must go to: https://sample.site.com/api/v3/customers/index.php?get=1&emial=address(at)test.com

if the URL is https://sample.site.com/api/v3/customers?page=XXX&limit=YYY&fields=ZZZ
it must go to: https://sample.site.com/api/v3/customers/index.php?get=1&page=XXX&limit=YYY&fields=ZZZ

if the URL is https://sample.site.com/api/v3/customers/deposits?page=XXX&limit=YYY&fields=ZZZ
it must go to: https://sample.site.com/api/v3/customers/deposits.php?get=1&page=XXX&limit=YYY&fields=ZZZ

I need the htaccess file (or files if more than one) with the specific location of each one.
Thanks!
Related categories: Linux Apache