Hello everyone 
 I want my url :  /affiliate-programs-directory.html?cid=anystring&subid=anystring 
  
to look like  search engine friendly as: 
  
/affiliate-programs-directory/anystring/anystring. 
  
And also i am using joomla and i have written a php script which uses values of cid and subid from the url. 
So my question is what RewriteRule should i write in my .htaccess file for the above problem and aslo i should get my cid and subid values in the php script to display the pages. 
Thank you in advance for your help....