title: .htaccess URL Rewrite Help Needed
body: <p>I need some help to clean my URL.
  I have a PHP script that generate URL's like:</p>
  
  <pre><code>http://example.com/index.php?a=profile&amp;u=simon
  </code></pre>
  
  <p>Currently I have an <code>.htaccess</code> that clean most of it </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]
  
  RewriteRule ^welcome/([^/]+)/?$         index.php?a=welcome&amp;filter=$1   [NC,QSA,L]
  RewriteRule ^explore/([^/]+)/?$         index.php?a=explore&amp;filter=$1   [NC,QSA,L]
  RewriteRule ^profile/([^/]+)/?$         index.php?a=profile&amp;filter=$1   [NC,QSA,L]
  RewriteRule ^page/([^/]+)/?$            index.php?a=page&amp;filter=$1      [NC,QSA,L]
  RewriteRule ^(([^/]+)+)(/([^/]{0,32})(/.+)?)?$ index.php?a=$1&amp;q=$3 [L,QSA]
  </code></pre>
  
  <p>The previous link with these rules looks like:</p>
  
  <pre><code>http://example.com/profile&amp;u=simon
  </code></pre>
  
  <p><strong>Is there a way to achieve this?</strong> </p>
  
  <pre><code>http://example.com/simon
  </code></pre>