You were close to the answer ... Do you have one ?
on the other hand. Put it on the redirection side to remove the query string:
RewriteRule ^viewtopic.php http://www.myurl.org.uk/? [L,R=301]
In 301 redirects, mod_rewrite usually adds the complete query string. But accommodation ?
at the end of your rewritten URL without the corresponding flag, [QSA]
("querystring append") will instead use the empty query string that you specified.
Michael berkowski
source share