title: url rewrite rules with php and mysql
body: <p>I am new in writing url rewrite rules. Can you help me in writing rewrite rules. My current browser url is </p>
  
  <pre><code>http://localhost/live/match-page.php?mid=770&amp;sid=7
  </code></pre>
  
  <p>My anchor tag for that url is given below</p>
  
  <pre><code>&lt;a target='_blank' href="match-page.php?mid=&lt;?php echo $rec-&gt;ID?&gt;&amp;sid=&lt;?php echo $rec-&gt;stream_id?&gt;" style="color:#ffae00;"&gt;  &lt;?php echo $rec-&gt;CatName; ?&gt; - &lt;?php echo $rec-&gt;Title; ?&gt; &lt;/a&gt;
  </code></pre>
  
  <p>How I edit <code>.htaccess file</code> then I show my browser url like given bellow here:</p>
  
  <pre><code>http://www.cricmelive.tv/live/177/south-africa-v-india-test-live-streaming
  http://www.cricmelive.tv/live/Basketball-live-streaming
  </code></pre>
  
  <p>how make anchor tage for url rewrite mode? </p>
  
  <p>It is true that I made new queries for it? And pass to the database. If it is possible how do it.</p>