RewriteEngine on
RewriteRule ^([^/]*)_([^/]*)$ index.php?do=txt&id=$2 [NC,L]