New subdomains are redirected to a another subdomain on the same server

crerem

Member
Apr 7, 2016
7
3
3
romania
cPanel Access Level
Root Administrator
Hi,
I have a redirect problem,

On Cpanel i'm creating some new subdomains for a domain. The DNS is on AWS , and i pointed the new subdomains to the right ip. Also the new subdomains are added on the ssl certificate(from let's ecncrypt).

When i try to access the new subdomain they get redirected do another subdomain from another domain on the same server.

For ex
the main domain is wpstream.net

i created the subdomain golive.example.net but when i try to access i get redirected to demoadmin.example.org/ (which is domain hosted on the same server)

same thing happens for other 2 subdomains.

I rule out any httaces redirected, code redirects and triple check that dns is pointing to the right ip.

I read that there may be problems because autossl but that is set to disabled

Thank you for your help.
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Hi @crerem


To clarify (and please correct me if I'm wrong), the issue is this:

You have two + subdomains created in the example.net account and when you attempt to go to any of them you're redirected to demoadmin.example.net?

Using curl might answer how it's occurring. Can you run the following and let me know the output:

Code:
curl -vv subdomain.example.net
When responding please stop at the end of the http headers and change the domain names/IP addresses as well.