WordPress Multisite Sub Domains Admin Panels 404 Error

To clarify my comments (since comments don’t lend themselves to code blocks), you should only be using the .htaccess rules that apply to your particular WordPress installation. I’m assuming in this answer that you’re using WordPress greater than 3.5 (the current release as I write this is 6.7), and your question shows Subdomain Multisite. Thus, your .htaccess file should contain:

# BEGIN WordPress Multisite
# Using subdomain network type: https://wordpress.org/documentation/article/htaccess/#multisite

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

# END WordPress Multisite

If you need other, non-WordPress rule (eg you’re hosting static HTML files on the same server), any rules you set for those should be unchanged.

Reference: HTTPD / .htaccess for WordPress

error code: 523