Headless WordPress redirect front-page to login page [closed]

At the top of your .htaccess file before the WordPress front-controller try the following:

RewriteRule ^$ /admin [R,L]

This redirects https://example.com/ to https://domain.com/admin. This is a temporary (302) redirect.