Say I'm on shared hosting and my main domain is domain1.com. I bought new domain2.com and had to used as an addon to path /home/username/domain2/. however the setting of paths with the script Iwas using was confusing as it was not in the public_html folder. Now I have set domain2.com to /public_html/domain2/ However when I visit the domain2.com I see domain1.com/domain2/ in the url. How can I make it so it does not do that to URL?
Addon domains do two things. First thing is that it creates a sub domain. Then it creates a TLD (Top Level Domain). The path for your domain will be .../username/public_html/newdomain.tld/