Error on rewriting URL with htaccess
<p>I want to rewrite URL with help of ".htaccess" file, but having some problem.</p>

<p><a href="http://domian.in/code.php?code=hby5" rel="nofollow">http://domian.in/code.php?code=hby5</a></p>

<p>to</p>

<p><a href="http://domian.in/hby5" rel="nofollow">http://domian.in/hby5</a></p>

<p>I used this below htaccess code but having "<strong>500 Internal Server Error</strong>".</p>

<pre><code>RewriteEngine On
RewriteRule ^([^/]*)$ /code.php?code=$1 [L]
</code></pre>

<p>Any help will be appreciable.</p>