in .htaccess:
<ifModule mod_rewrite.c>
RewriteRule ^([a-zA-Z_]+)/?$ index.php?list=subcat&view=$1
RewriteRule ^([a-zA-Z_]+)/([a-zA-Z_]+)/?$ index.php?list=viewsubcat&view=$2&cat=$1
</ifModule>
That will match all lowercase/uppercase alpha characters with _ with an optional trailing slash and redirect them to ?list=subcat&view=(match). The second does the same, but two times, redirecting to ?list=viewsubcat&view=(match2)&cat=(match1)
I think. Untested, but it should work with minimal tweaking.