Add_rewrite_rule function (wordpress) doesn't work

I can’t overwrite the rules in WP through add_rewrite_rule function , I suspect this is related to the server settings.

I can’t rewrite the rules, I suspect that this is due to the server setting, because when I even manually tried to rewrite the link with the get parameter, it didn’t affect anything.
For the test, I decided to try creating a rule directly in the htacess file

RewriteRule ^user([0-9]+)$ /index.php?id=$1 [L]

GET site.com/?id=1

Expect to receive site.com/user1

But nothing happens

You have to restart openlitespeed after modifying .htaccess.
Try that if you did not already do it.