Skip to main content

Problem with links in HTML Addon domain

Comments

7 comments

  • cPanelLauren
    Hi @hanswurst31
    when i now enter addondomain.com the addon website load just fine with just addondomain.com in the adressbar. however when i click on the website name which is linked in the html as href="addondomain.com" the browser wants to visit primarydomain.com/addaondomain.com/adondomain.com

    It sounds like you created an addon domain, and when visiting the addon domain it loads without issue with the exception of the link you've added to the site, am I correct? Can you paste the exact code you have in the html for the link (changing the name of the actual domain of course)? It sounds like maybe the link is malformed. Does the behavior change if you enter in the full URL?
    0
  • hanswurst31
    yes that right. when i enter addondomain.com it loads the addondomain.com and the content of the second website i created without showing the subdomain. like i want. the problems occurs when i hover over a link or click on the link. it wants go to primarydomain.com/addaondomain.com/adondomain.com instead of just addondomain.com. another links are also dont work. i.e. i put url of the primarydomain(primarydomain.com) to the addondomain html. when i click on that link it wants to go to primarydomain.com/addaondomain.com/primarydomain.com primarydomain.com a link which works is following: primarydomain.com/addaondomain.com/menu.pdf its opens the pdf in a new page just fine. but also there i wouldnt want that the primarydomain.com part of the link is displayed. href="menu.pdf" target="_blank">menu it doesent matter if i add http:// to the link or not. i guess the questionsmark shouldnt be included?
    0
  • cPanelLauren
    Hello,
    it doesent matter if i add http:// to the link or not. i guess the questionsmark shouldnt be included?

    Sorry about that, it automatically made it a link and included the ? to the link when I posted it. Can you tell me what the document root for the addon domain is or if it's being redirected? You can see this in cPanel>>Domains>>Addon Domains
    0
  • hanswurst31
    it was public_html/addondomain.com but after i found a thread with a similar problem i removed the publich_html part. no redirection.
    0
  • cPanelLauren
    Can you please open a ticket using the link in my signature so that we can take a closer look? Once the ticket is open please reply with the ticket ID here so we can update this thread with the outcome. Thank you,
    0
  • hanswurst31
    im sorry but i cant find whm nor shell in the cpanel the search field nor the chrome search function cant find anything about it and it seems i dont knwo what do google about. do i maybe have to install a modul in the pearl section? if yes which one exactly? ps. imstuck at the second step: Grant cPanel Support access to your server.
    0
  • cPanelLauren
    Hello, Do you have root access to the server or is it a shared hosting account? If it is the latter I would suggest contacting your hosting provider to look further into your issue. If you have root access to the server you should be able to reach WHM with the following URL: https://:2087 And login with the root user/password Once that is complete you should be able to get to WHM>>Support>>Grant cPanel Support Access Thank you,
    0

Please sign in to leave a comment.