The .htaccess file does not work exactly

My .htaccess file looks like this:

BEGIN WordPress

RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] RewriteBase / RewriteRule ^index\\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

END WordPress

My .htaccess file is correct. but the links are giving 404 error.

There is also a forum folder on my site. I should use a different .htaccess file in that part. But .htaccess files don’t work as they do in apache.

What should I do ?

Please read → https://cyberpanel.net/2018/09/10/openlitespeed-v1-4-38-has-been-released/