it seems the query string is seperated from the base url by apache
and so the two need to treated seperately

so, could someone test this out

RewriteEngine on
RewriteCond %{QUERY_STRING} ^t=([0-9]+)
RewriteRule viewtopic.php index.php?showtopic=%1