title: using multiple parameter with url rewrite php
body: <p>hi am trying to use url rewrite with php with this code</p>
  
  <p>.htaccess file</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      #prevent access to (includes) folder
      RewriteCond %{REQUEST_URI} !-f
      RewriteRule ^([includes])$ /new [L]
      #if use tow parameter
      RewriteCond %{REQUEST_URI} ([a-z0-9]+)/([a-z0-9]+)
      RewriteRule ^([a-z0-9]+)/([a-z0-9]+)/?$ index.php?p1=$1&amp;p2=$2 [L]
      #if use one parameter
      RewriteCond %{REQUEST_URI} ([a-z0-9]+)
      RewriteRule ^([a-z0-9]+)$ index.php?p1=$1 [L]
  
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>and i have an index.php file that content two links 
  first one send one parameter
  second send tow parameter</p>
  
  <pre><code>&lt;a href="parameter1"&gt;one parameter&lt;/a&gt;
  &lt;a href="parameter1/parameter2"&gt;two parameter&lt;/a&gt;
  </code></pre>
  
  <p>when I use the first link every thing is ok and the link is showing in browser as</p>
  
  <pre><code>http://localhost/project/parameter1
  </code></pre>
  
  <p>when I use the second link at the first time every thing look good too as</p>
  
  <pre><code>http://localhost/project/parameter1/parameter2
  </code></pre>
  
  <p>but if I repress the link again the link is showing in browser as</p>
  
  <pre><code>http://localhost/project/parameter1/parameter1/parameter2
  </code></pre>