title: htaccess rewrite rule, remove question mark
body: <p>Let's say I have the following url:</p>
  
  <pre><code>http://example.com/?param
  </code></pre>
  
  <p>how should I remove the question mark from the URL, ie. rewrite</p>
  
  <pre><code>http://example.com/param
  </code></pre>
  
  <p>to something like this:</p>
  
  <pre><code>http://example.com/index.php?param
  </code></pre>
  
  <p>Here is my code, that doesn't work:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^(.*)$ /index.php?$1 [P]
  </code></pre>