title: change url using htaccess, while two variables in url
body: <p>There are two variables in my url.
  this is my home url --> <strong>subdomain.example.com/subdirectory/abc.php</strong></p>
  
  <p>if available the variables, url like this --> <strong>subdomain.example.com/subdirectory/abc.php?m=p&amp;n=q</strong>
  the <strong>abc.php</strong> page generate different content by getting these variables.</p>
  
  <p>I use htaccess for that and it works fine.
  I need to change url like this --> <strong>subdomain.example.com/subdirectory/p/q</strong></p>
  
  <p>The problem is site has some pages separated pages like contact.php, privacy.php</p>
  
  <p>For that pages, i need to change that urls like 
  <strong>subdomain.example.com/subdirectory/contact</strong>
  <strong>subdomain.example.com/subdirectory/privacy</strong></p>
  
  <p>When i entered url <strong>subdomain.example.com/subdirectory/contact</strong>, 
  abc.php is getting the first variable(m) = contact.</p>
  
  <p>I need to stop that and change the url using htaccess.
  please help me. thank you.</p>