 <p>Try including slashes on the front:</p> <pre><code>RewriteRule ^/pokerbono/([a-zA-Z0-9_-]+)$ /pokerbono.php?id=$1 [L] </code></pre> <p><strong>UPD</strong>:</p> <p>This works in my environment:</p> <pre><code>RewriteEngine On RewriteRule ^qwe/([-_a-zA-Z0-9]*)$ qwe.php?id=$1 [L] </code></pre>