For OpenLiteSpeed, you don't need to specify <IfModule LiteSpeed>, as that directive is typically used in shared hosting environments running LiteSpeed Enterprise (LSWS).
You also don't need to wrap rules inside <IfModule mod_rewrite.c>, since OpenLiteSpeed supports mod_rewrite functionality by default. Just make sure that Enable Rewrite and Auto Load from .htaccess are enabled at the virtual host level.