title: htaccess rewrite
body: <p>I would like to rewrite <code>/anything.anyextension</code> into <code>/?post=anything</code>.</p>
  
  <p>eg:</p>
  
  <ul>
  <li><code>/this-is-a-post.php</code> into <code>/?post=this-is-a-post</code> or</li>
  <li><code>/this-is-a-post.html</code> into <code>/?post=this-is-a-post</code> or even</li>
  <li><code>/this-is-a-post/</code> into <code>/?post=this-is-a-post</code></li>
  </ul>
  
  <p>I tried</p>
  
  <pre><code>RewriteRule ^([a-zA-Z0-9_-]+)(|/|\.[a-z]{3,4})$ ?$1 [L]
  </code></pre>
  
  <p>but it doesn't work.</p>
  
  <p>Any help appreciated.</p>