htaccess rewrite for variable
<p>Okay, so this is my current HTACCESS file however it doesn't seem to be rewriting the variable properly, I'm not strong with htaccess so no clue I've found these from different sources,</p>

<p>The first rewrite allows me to use /item123/ however still shows ?searchid=item123 when searched by the server, I'd like to be written in the url as /item123/ Cheers. I think it needs a 301 redirect from server as mines not working.</p>

<pre><code>RewriteEngine on

RewriteRule ^([0-9A-z]+)/?$ /profile.php?searchid=$1 [R=301,NC,L]

RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]

RewriteCond %{THE_REQUEST} ^GET.*404\.php [NC]
RewriteRule (.*?)404\.php/*(.*) /$1$2 [R=301,NE,L]
</code></pre>