title: htaccess rewrite rule for image url
body: <p>I have the url:
  <code>http://www.mywebsite.com/i/1Q2GmFuFdZ.jpg</code></p>
  
  <p>I want to rewrite a rule that makes it go to the file <code>image.php?id=1Q2GmFuFdZ.jpg</code></p>
  
  <p>In my PHP file, I have this</p>
  
  <pre><code>&lt;?PHP
  print_r($_GET);
  ?&gt;
  </code></pre>
  
  <p>This is what I have in my htaccess</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ([a-zA-Z0-9]+[\.]+[a-z]{3})$ image.php?id=$1
  </code></pre>
  
  <p>This is the output that I am getting:</p>
  
  <pre><code>Array ( [id] =&gt; image.php )
  </code></pre>
  
  <p>I am not sure what I am doing wrong. I'm no regex pro but I know the basics.</p>
  
  <p>Thanks</p>
  
  <p>EDIT:
  Forgot to add 0-9 in expression</p>