title: Create SEO-friendly URL from php using htaccess
body: <p>I have a problem where my site url is as below;</p>
  
  <pre><code>myhomesite.ext/listino/macchine/listino/marca.php?marca=Audi
  </code></pre>
  
  <p>and I want to obtain an url similar as follows</p>
  
  <pre><code>myhomesite.ext/listino/macchine/listino/marca-Audi/
  </code></pre>
  
  <p>So, I try with the following code</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      Options +FollowSymLinks
      RewriteEngine On
  &lt;/IfModule&gt;
  
  
  &lt;IfModule mod_rewrite.c&gt;
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^marca/([a-zA-Z0-9]+)/$ marca.php?marca=$1
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>but nothing happened, I don't understand and please point me out where is my mistake. </p>
  
  <p>This is my latest add from the comment</p>
  
  <p>Oh yes it's correct i am trying several solutions, but now i 've tried this code from one generator tool it's</p>
  
  <pre><code> Options +FollowSymLinks 
  RewriteEngine on 
  RewriteRule marca/marca/(.*)/ marca.php?marca=$1 
  RewriteRule marca/marca/(.*) marca.php?marca=$1  
  </code></pre>
  
  <p>if i go on mediasportweb.com/macchine/listino/marca/marca/15 i find the url, with many problem on page on the css style, but i find it, but i also find the url mediasportweb.com/macchine/listino/marca.php?marca=15, i think that directive rewrite url erase the old url, what is wrong in my think?</p>