title: How to i Change URL Format in PHP
body: <p>i want to change URL <br><br>
  <code>http://localhost/Self-Content/img.php?v=YQHsXMglC9A&amp;fmt=hqdefault.jpg</code><br><br>
  to
  <code>http://localhost/Self-Content/bUTdUaVmj8o/mqdefault.jpg</code></p>
  
  <p>I'm Try this <code>.htaccess</code></p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{THE_REQUEST} /img\.php\?v=([^\s]+) [NC]
  RewriteCond %{THE_REQUEST} /img\.php\&amp;fmt=([^\s]+) [NC] 
  RewriteRule ^ /%1? [NC,R,L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^([^/]+)/?$ img.php?v=$1 [QSA,L,NC]
  RewriteRule ^([^/]+)/?$ img.php?v=&amp;fmt=$1 [QSA,L,NC]
  </code></pre>
  
  <p>I'm Using Wamp But When I try this code i'm getting this error<br>
  <code>Internal Server Error</code></p>
  
  <p><code>The server encountered an internal error or misconfiguration and was unable to complete your request.</code></p>