WordPress Admin Page Redirecting to Subdomain

Add the indicated line to your .htaccess and all should be fixed

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
**RewriteCond %{http_host} ^(www\.)?YourDomain\.com$ [nc]**
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

tech