Skip to main content

If type in browser ns1.mydomain.com/folder go to site

Comments

8 comments

  • cPanelLauren
    Hello, If I'm understanding this properly when you go to nsx.domain.tld it redirects you to an actual site instead of the defaultwebpage? IF this is the case what is present in the .htaccess file for domain.tld
    0
  • wonder_wonder
    Hi, No, not quite like that, perhaps I wanted to detail so much that I did not explain myself well. If I go to nsx.domain.tld go to defaultwebpage (of cpanel, that this is correct). Is when I go to nxs.domain.tld/folder (the website have a folders under public_html, but folders with content site, with index.php or html), for example: nsx.domain.tld/forum/indedx.php or nsx.domain.tld/courses/index.html (I put the index.php and index.html but it is not necessary to write it in the browser). In this cases, not go to defaultwebpage (of cpanel) go to site that I pointed and in the browser appears the url with nsx.domain.tld/folder If you want, I can type a domain of one VPS that I have for view that I want explain. Thanks and regards!
    0
  • cPanelLauren
    Can you show me a screenshot? You can block out the actual domain name If you like in the screenshot.
    0
  • wonder_wonder
    Hi, Yes, of course! Attach a screenshot, I block out domains, but if you want, I can attach with domains. If I type in the browser: nsx.domain.tld go to this page (is correct): https://i.ibb.co/dJkZfvs/1.jpg
    But if I type https://i.ibb.co/6tQpsHJ/5.jpg
    other: https://i.ibb.co/7yV4qcr/4.jpg
    If you want, can attach screenshot without block out domains. Thank you very much and best regards @cPanelLauren !
    0
  • cPanelLauren
    Everything is correct behavior right up until the folders. If I was to go to
    0
  • wonder_wonder
    Hi, If I understand well: If I was to go to https:ns1.mydomain.tld/folder I get a 404 because the folders don't exist, yes, I have this. In my case, if I type any folder I put (folder that exist) go to the site/folder with the nsx.mydomain.tld.... in the browser If I put any folder that don't exist, go to 404 In my last reply, when indicate go to 404 is when I type nsx.mydomain.tld (without https:// before) not for folders. But like indicate, if I type nsx.mydomain.tld/folderx (folderx exist or some folder that exist) go to the content of this folder, and in the browser appears www.mydomain.tld to www.mydomain.tld/forum And I view this, google (and analytics and adsense) are indexed nsx.mydomain.tld/forum . For this cause I was view this with nsx... I hope I have been able to explain well :) Regards!
    0
  • cPanelLauren
    Hello, The issue I'm struggling to understand and what I'm trying to determine is why do your nameservers have folders/documentroot? These should just be A records. They should not be set up as a domain on the cPanel server.
    0
  • wonder_wonder
    Hi @cPanelLauren Yes, it comes to be as you say, my nameservers have (or can point) to folders/documentroot (documentroot = index.php or html). But perhaps the word is not "have" but rather resolves / points / displays any folder under the "domain" nsx.domain.tld / folder and effectively, that is not a domain. This is that I understand and know, these should just A records, not set up as a domain on the cPanel server. In DNS Zone, the nsx records are only with A record (and AAAA por ipv6). If you want, can attach screenshot of the DNS zone (hiding domain). For me its very strange, I've been looking for information for days, trying to find out the cause, and I can't find it (and especially a site, I don't want to be indexed like this by google). But, I don't know if they have something to do, because this is a question that I'm looking for information and I was going to expose it later in the forum, DNS zone of WHM and DNS zone of cPanel (of the same domain) are different, in cPanel have less records Best regards.
    0

Please sign in to leave a comment.