Myślałem, że zadziała takie coś:
Kod
RewriteRule ^viewtopic.php?id=([0-9]+)$ t$1.html [R=301,L]
RewriteRule ^t([0-9]+).html$ viewtopic.php?id=$1
RewriteRule ^t([0-9]+).html$ viewtopic.php?id=$1
Ale najwyrażniej się przeliczyłem. Nie działa mi automatyczne przekierowanie 301 starego adresu na nowy. Jak podam ręcznie t123.html wszystko śmiga jak należy.