redirects not working in a fresh wordpress install

New wordpress install. Below is the htaccess file.

I am using cyberpanel 1.7

in a regular wordpress install if i go to domain/admin it should redirect to domain/wp-login.php in this case its not happening.

BEGIN LSCACHE

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

RewriteEngine on CacheLookup on RewriteRule .* - [E=Cache-Control:no-autoflush] RewriteRule ^min/\\w+\\.(css|js) - [E=cache-control:no-vary]

marker CACHE RESOURCE start

RewriteRule wp-content/./[^/](responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]

marker CACHE RESOURCE end

marker FAVICON start

RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]

marker FAVICON end

## 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! ## ### marker MINIFY start ### RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\\w+)\\.(css|js)$ RewriteCond %1/wp-content/cache/$2/$1.$2 -f RewriteRule min/(\\w+)\\.(css|js) wp-content/cache/$2/$1.$2 [L] ### marker MINIFY end ###

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

END NON_LSCACHE

I don’t see any rules, use these at the end of your file

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Save rules using this guide: 6 - Rewrite Rules - CyberPanel

Still did not work.

BEGIN LSCACHE

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

RewriteEngine on CacheLookup on RewriteRule .* - [E=Cache-Control:no-autoflush] RewriteRule ^min/\\w+\\.(css|js) - [E=cache-control:no-vary]

marker CACHE RESOURCE start

RewriteRule wp-content/./[^/](responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600]

marker CACHE RESOURCE end

marker FAVICON start

RewriteRule favicon\.ico$ - [E=cache-control:max-age=86400]

marker FAVICON end

## 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! ## ### marker MINIFY start ### RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} ^(.*)/min/(\\w+)\\.(css|js)$ RewriteCond %1/wp-content/cache/$2/$1.$2 -f RewriteRule min/(\\w+)\\.(css|js) wp-content/cache/$2/$1.$2 [L] ### marker MINIFY end ###

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

So I notice you’ve multiple installations of WordPress in sub-folders. For multiple installations you can use these rules:

# This will cover WordPress in /test sub-dir
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{ORG_REQ_URI} /test
RewriteRule . /test/index.php [L] # This will make sub-directory works.

# This will cover WordPress in example sub-dir
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{ORG_REQ_URI} /example
RewriteRule . /example/index.php [L] # This will make sub-directory works.



# This will cover WordPress in document root, make sure this part comes last in your .htaccess
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

</IfModule>