title: .htaccess rewrite index GET request
body: <p>So, I want to rewrite my url from this:
  <a href="http://example.com/l1" rel="nofollow">http://example.com/l1</a>
  to
  <a href="http://example.com/?loc=l1" rel="nofollow">http://example.com/?loc=l1</a></p>
  
  <p>Currently I have this:</p>
  
  <pre><code>RewriteEngine On 
  
  RewriteRule ^/(.*)$ ./?loc=$1 [NC,L]
  
  ErrorDocument 404 /errors/404.php
  </code></pre>
  
  <p>But each time I type <a href="http://example.com/l1" rel="nofollow">http://example.com/l1</a> it gives me a 404 error! Please help!</p>