SOLVED SOLVED: Cpanel login for domain redirects to cpanel.subdomain.domain

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
I have a domain hosted on my server (I'll use "hosteddomain.com" for purposes of this explanation). The account was originally created as a subdomain "myaccount.example.com" under my primary domain ("example.com" for the purposes of this explanation), and then the domain "hosteddomain.com" was parked on that account. hosteddomain.com has an active SSL certificate on it (from Sectigo AutoSSL).

Recently I noticed when I go to hosteddomain.com/cpanel, it redirects my browser to "cpanel.myaccount.example.com"). I can log in and work fine, but I have other domains parked on other accounts under example.com and they don't redirect when logging into their cpanels. I'm fairly certain this one also used to remain at hosteddomain.com in my browser after logging in to its cpanel account.

Can anyone offer any clues as to what might cause an account to do that?

Thanks!
 

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
UPDATE: It seems that even though the SSL certificate was valid (I could access hosteddomain.com using https just fine and the certificate said it was not expired and valid), I deleted all SSL certificates for the domain and subdomain and told AutoSSL to check the account. It failed the first time (of course, with the "not accepting requests at this time..." error), but after another manually initiated check for that account, AutoSSL generated and installed a new SSL for that account. After installation, going to hosteddomain.com/cpanel does not redirect to cpanel.myaccount.example.com any more. The browser continues to show hosteddomain.com in the address bar like it used to.

So apparently something to do with the domain's SSL certificate (although it was issued and installed by AutoSSL in January) went amuck, as reissuing and installing a new one seems to have repaired the issue.