title: .htaccess to load index in dynamic folder name
body: <p>I am having problem with .htaccess to load index in dynamic folder name.
  Here is my directory structure:</p>
  
  <pre><code>root/products/ -&gt; this is constant folder name
  </code></pre>
  
  <p>instead of using GET for product urls:</p>
  
  <pre><code>root/products/index.php?product=my-product-url
  </code></pre>
  
  <p>I want to put the product url after products folder and to look like:</p>
  
  <pre><code>root/products/my-product-url
  </code></pre>
  
  <p>My .htaccess file is in products folder and has this code:</p>
  
  <pre><code>RewriteBase /products/
  RewriteRule ^index\.php$ - [L,NC]
  RewriteRule . index.php [L]
  </code></pre>
  
  <p>but it doesn't work.
  It actually loads the index file but in the console I can see it is looding js file over 1000 times if I don't stop the page.. It looks like is reloading the page so many times and adds I suppose timestamp at the end of the js file like:</p>
  
  <p>GET <a href="http://www.mysiteexaple.com/js/jalerts/jquery.js?_=1464945951342" rel="nofollow">http://www.mysiteexaple.com/js/jalerts/jquery.js?_=1464945951342</a></p>
  
  <p>Can you help me please and show me what is wrong? thanks !</p>