URL Rewrite help required


Well-known member
Is there anyone out in XF land that can tell me if the following would work before I add it to my .htaccess file to find out...

Basically I'm looking to rewrite: /forum/topic.asp?TOPIC_ID=12345 to /forums/threads/12345 where 12345 could be any combination of numbers

I've put together the following based on another rewrite rule found on Google....

RewriteEngine On
RewriteCond %{QUERY_STRING} topic_id=([0-9]+) [NC]
RewriteRule ^forum\topic\.asp$ /forums/threads/%1.0 [NC,L,R=301]

would it work?