title: url rewrite both www to non-www and delete parameter index.php?url when use phpmvc
body: <p>I want to redirect <code>www.myDomain.com/index.php?url=controller/methode/parameter</code> to
  <code>mayDomain.com/controller/methode/parameter</code></p>
  
  <p>this is my htaccess code :</p>
  
  <pre><code>RewriteEngine on
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  
  RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
  
  RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
  RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
  </code></pre>
  
  <p>the problem is when use www at the beginning url, <code>index.php?url=</code> appear in url !
  is there any way to do not show this?</p>