Redirect url like www.url.com/test/client2 to something like www.mydomain.com/test.php?clientid=2
Redirect, Change URLs or Redirect HTTP to HTTPS in Apache - Everything You Ever Wanted to Know About mod_rewrite Rules but Were Afraid to Ask