Please help me convert this nginx rewrite into Litespeed rewrite

#1
I have the following nginx rewrite rule that works great, but for the life of me, I cannot figure out the right way to add it to Litespeed:

Code:
~^/index\.php\?(?<suffix>(forums|threads|members|resources|posts|help|tags|attachments).*)$ /forums/$suffix;
Here is what I added to Litespeed, but it's not hitting this rule, so my regex must be incorrect.
Code:
RewriteRule ^/index\.php\?((forums|threads|members|resources|posts|help|tags|attachments).*)$ https://site.com/forums/$1 [L,R=301]
Basically, this looks for URLs like site.com/index.php?forums/test-forum.123 and sends it to https://site.com/forums/forums/test-forum.123

I need it to only apply to these set suffixes though, because we have different software at the root now that also uses this /index.php?path format, which I need to keep working obviously.

Any help would be appreciated. I'm a long-time nginx user, and my Apache style rewrite skills are lacking.
 
Top