title: RewriteRule returns Internal Server Error
body: <p>I'm trying to get the hang of Rewrite rules. I've used some generators and guides to try and understand how it works, and the code I get back is the following:</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine on
  RewriteRule view_image/img/(.*)/ view_image.php?img=$1
  RewriteRule view_image/img/(.*) view_image.php?img=$1
  </code></pre>
  
  <p><strong>I'm trying to re-direct:</strong>
  <a href="http://www.danielfew.uk/projects/file_upload/view_image.php?img=food-q-c-1920-1080-2.jpg" rel="nofollow">http://www.danielfew.uk/projects/file_upload/view_image.php?img=food-q-c-1920-1080-2.jpg</a></p>
  
  <p><strong>To:</strong>
  <a href="http://www.danielfew.uk/projects/file_upload/view_image/img/food-q-c-1920-1080-2.jpg/" rel="nofollow">http://www.danielfew.uk/projects/file_upload/view_image/img/food-q-c-1920-1080-2.jpg/</a></p>
  
  <p><strong>Or even better, redirect:</strong>
  <a href="http://www.danielfew.uk/projects/file_upload/view_image.php?img=" rel="nofollow">http://www.danielfew.uk/projects/file_upload/view_image.php?img=</a>{image-name}</p>
  
  <p><strong>To:</strong>
  <a href="http://www.danielfew.uk/img/" rel="nofollow">http://www.danielfew.uk/img/</a>{image-name}</p>
  
  <p>Or thats what the generator say's... but each time I goto that page I get an Internal Server Error.</p>
  
  <p>Can someone give me a hand and help me understand how Rewriting URL's work?</p>
  
  <p>I have removed the content of .htaccess for now so you can view the page without getting Internal Server Error.</p>