Strange addon domain redirect issue

Archinus

Member
Apr 14, 2015
7
0
1
United States
cPanel Access Level
Website Owner
Hello - i will try to keep this short and to the point, but if there are any details i can provide to you to help me in fixing this please do say so!

So i have domain1.com added as a primary domain in my cpanel account and i have added domain2.com as a secondary domain. Everything looks fine until i try to visit domain2.com. When i go to domain2.com it redirects me to www.domain1.com/domain2.com/ .

I have checked for redirects in cpanel - there are none. I have also tried deleting and recreating domain2.com as an addon domain. If i try to go to domain2.com when it is not added as an addon domain then i get a normal error page, so i dont think it's a DNS issue.

Any help would be greatly appreciated - Thanks!
 

Infopro

Well-Known Member
May 20, 2003
17,076
523
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
To be clear, you have domain1.com, and there is I'm assuming, nothing in it but an index.html (you've disabled the .htaccess here) and you have an addon domain, domain2.com, with nothing in it, not even an .htaccess, but it does have an index.html as well. On opening domain2.com you're getting a redirect loop. Is that right?

Or do you have scripts installed into one or both of these domains?
 

Archinus

Member
Apr 14, 2015
7
0
1
United States
cPanel Access Level
Website Owner
To be clear, you have domain1.com, and there is I'm assuming, nothing in it but an index.html (you've disabled the .htaccess here) and you have an addon domain, domain2.com, with nothing in it, not even an .htaccess, but it does have an index.html as well. On opening domain2.com you're getting a redirect loop. Is that right?

Or do you have scripts installed into one or both of these domains?
I apologize i should of specified that domain1 has a wordpress install, and domain2 is empty.
 

Archinus

Member
Apr 14, 2015
7
0
1
United States
cPanel Access Level
Website Owner
See if this is of any use to you:
wpbeginner.com/wp-tutorials/how-to-fix-error-too-many-redirects-issue-in-wordpress
Well for simplicity's sake i removed the wordpress install (it was a blank site), and removed and re-added domain1 and domain2 and the loop has stopped but domain1directs me to /cgi-sys/defaultwebpage.cgi and domain1 directs me to domain1.com/domain2.com/
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
Hello,

Do you have root access to this server? If not, could you report this problem to your web hosting company so they can take a closer look and verify why this is happening?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
Were you able to report the issue to your web hosting provider so they could take a closer look?

Thank you.
 

Infopro

Well-Known Member
May 20, 2003
17,076
523
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
Well for simplicity's sake i removed the wordpress install (it was a blank site), and removed and re-added domain1 and domain2 and the loop has stopped but domain1directs me to /cgi-sys/defaultwebpage.cgi and domain1 directs me to domain1.com/domain2.com/
Sounds like one of the domains has not propagated, or is configured incorrectly somewhere to me.

Do you note any issues checking them both from a site like this one?
intodns.com