title: htaccess to modify URL
body: <p>I have the urls:</p>
  
  <pre><code>http://example.com/at
  and want to get:
  http://example.com/at/index.php?at=
  
  http://example.com/at/
  and want to get:
  http://example.com/at/index.php?at=
  
  http://example.com/at/1asSde
  and want to get:
  http://example.com/at/index.php?at=1asSde
  </code></pre>
  
  <p>Also I am modifying the .htaccess located at the folder 'at'</p>
  
  <p>I've been trying:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule (.*)$ index.php?at=$1 [QSA,L]
  </code></pre>
  
  <p>but am getting errors later when running the script of the site.</p>
  
  <p>What can I try instead in order to get the correct results?</p>
  
  <p>Thanks.</p>