Rewrite Rules for subdomain

hello
i use Rewrite Rules for my website https://domain.com

BEGIN LSCACHE

LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!

LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!

END LSCACHE

BEGIN NON_LSCACHE

LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!

LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block!

END NON_LSCACHE

BEGIN WordPress

RewriteEngine On RewriteBase / RewriteRule ^index\\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

how to add Rewrite Rules for subdomain https://sub.domain.com ??

RewriteEngine On RewriteCond %{REQUEST_URI} !(/$|\\.) RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php [L]

solved in this article