Strange addon domain redirect issue
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!
-
Check your .htaccess in root directory of domain1.com, if possible, rename the file to .htaccess.txt for a moment and then try opening domain2.com 0 -
Check your .htaccess in root directory of domain1.com, if possible, rename the file to .htaccess.txt for a moment and then try opening domain2.com
Thanks - when i disable the .htaccess it creates a redirect loop on both domains.0 -
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? 0 -
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.0 -
Which one has the redirect loop? 0 -
Are you using CloudFlare by chance? 0 -
Which one has the redirect loop?
With the .htaccess disabled domain2 redirects to domain1 which then goes into a loop. Also no i am not using cloudflare.0 -
See if this is of any use to you: wpbeginner.com/wp-tutorials/how-to-fix-error-too-many-redirects-issue-in-wordpress 0 -
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/0 -
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. 0 -
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.
I do have root access to the server.0 -
Were you able to report the issue to your web hosting provider so they could take a closer look? Thank you. 0 -
Were you able to report the issue to your web hosting provider so they could take a closer look? Thank you.
I think you may of misread. It's on a VPS i have root access to.0 -
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.com0
Please sign in to leave a comment.
Comments
14 comments