title: How To Rewrite URL in php using htaccess file. what change in php code
body: <p>I'm new in .htaccess file. i m searching on net but i m not able to change and rewrite URL in PHP...
  E.G</p>
  
  <p>Show URL Like : </p>
  
  <blockquote>
    <p>localhost/web/site/view_project.php?vp=14</p>
  </blockquote>
  
  <p>I want show my URL like </p>
  
  <blockquote>
    <p>localhost/web/site/project/14/</p>
  </blockquote>
  
  <p>In php i m use this code</p>
  
  <pre><code>href="view_project.php?vp=&lt;?php echo $c_id&gt;" echo $c_project_title
  </code></pre>
  
  <p>In .htaccess file I'm using</p>
  
  <pre><code>Options +FollowSymlinks
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^project/([0-9]+)/?$ /view_project.php?vp=1&amp; [L,R]
  </code></pre>
  
  <p>Now please tell what need to change in PHP Code and HTACCESS file...  I'm totally new in this.</p>