title: .htaccess not working properly - get variable
body: <p>I have (probably) very easy problem to fix. My simple .htaccess does not work as I want, and I can't figure out what's happening.</p>
  
  <p>.htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^([^/]*)/$ /index.html?sport=$1 [L]
  </code></pre>
  
  <p>Then when I go to <code>http://domain.com/soccer/</code> then run this line in console: <code>window.location.search.replace( "?", "" );</code> it gives me nothing while it should give me <code>sport=soccer</code> exactly as it is doing while I go to  `<a href="http://domain.com/index.html?sport=soccer" rel="nofollow">http://domain.com/index.html?sport=soccer</a>... </p>
  
  <p>It's probably something easy but the .htaccess is a total mystery for me</p>
  
  <p>question:
  How do I make the Rewrite work so when people type in</p>
  
  <pre><code>domain.com/soccer/
  </code></pre>
  
  <p>will work exactly as:</p>
  
  <pre><code>domain.com/index.html?sport=soccer
  </code></pre>
  
  <p>Some simple explanation (not necessary) would help a great deal so maybe finally I could understand .htaccess..</p>
  
  <p>cheers</p>