Pseudo-static processing of htaccess

I now have three such links:
goods.html
goods.html?id=123
goods.html?id=123&cat=123

the existing pseudo-static rules:
RewriteRule ^ (). Html (. ) $index\ .php\? mod=$1

that is, goods.html = index.php?mod=goods

how do I write rules so that
goods.html?id=123 = index.php?mod=goods&id=123

goods.html needs to be followed by as many parameters as you want, and the parameters that follow html do not need to be processed statically.

Mar.01,2021
Menu