your original URL is not valid.
URL variables should have a name value pair, for example:
if you have the originbal URL as:
that would be more correct. and you could use the following rewrite rule:
RewriteRule ^([^/]*)/$ /myfolder/index.php?myvariable=$1 [L]
I used the mod rewrite generator here to find that: