title: htaccess url rewrite not working properly
body: <p>I know this has been asked a couple of times, but I've been wraking my brain about this for hours now and I just can't seem to figure it out. </p>
  
  <p>So I have a url: <a href="http://example.com/product.php?id=123" rel="nofollow">http://example.com/product.php?id=123</a>
  which I'd like to rewrite to <a href="http://example.com/product/123" rel="nofollow">http://example.com/product/123</a></p>
  
  <p>I have this code:</p>
  
  <pre><code>RewriteRule ^product/([^/\.]+)/?$ product.php?id=$1 
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f 
  RewriteRule ^([A-Za-z-\s0-9]+)$ /product.php?id=$1 [L]
  </code></pre>
  
  <p>And it makes the <a href="http://example.com/product/123" rel="nofollow">http://example.com/product/123</a> url work, but the images are not loaded, I guess because the php tries to find them in the /product directory, and also if I enter the orignal url it doesn't get rewritten.</p>
  
  <p>So can you help me how to solve these?</p>
  
  <p>Any help is much appreciated!</p>