title: Friendly url using php and htaccess
body: <p>i have managed to change the url according to the values which i got from the database.
  In my url i need to pass the article id and Article title like this.</p>
  
  <pre><code>$articleId=123;
  $articleTitle='First Article';
  echo '&lt;a href="'.$articleId.'&amp;'.str_replace(" ","-",$articleTitle).'"&gt;Read More&lt;/a&gt;';
  </code></pre>
  
  <p>in my htaccess file</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule (.*) display.php?id=$1&amp;$2
  </code></pre>
  
  <p>Then on the Display.php i will get the Article Id using Get method.
  But my problem is when i look the url it is displaying like this.</p>
  
  <pre><code>http://localhost/News/123&amp;First-Article
  </code></pre>
  
  <p>But i need to display the url like this.</p>
  
  <pre><code>http://localhost/News/First-Article
  </code></pre>
  
  <p>and display the article details on Display.php file.
  Hope i have clearly explain the problem. Please advice.
  Thanks in Advance.</p>