RewriteCond %{QUERY_STRING} topic=([\d])
RewriteRule index.php?$ /d/%1-(.)? [R=301,L]
this is what i came up. is working but probably can be improved.
for example this
topic=29302.0 redirects to d/293-
still cant figured why. if someone with more experience with regex can help me would be appreciated .
thank you