Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Changing subdomain that will access files

Discussion in 'Bind/DNS/Nameserver' started by Techmo9j, Jul 29, 2017.

  1. Techmo9j

    Techmo9j Registered

    Jul 29, 2017
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    Hey guys!

    I'm new to using cPanel and am in need of some help.

    So I have a domain from (
    I have setup the nameservers to point to my cPanel host. Great that works!
    I see in the "zone editor" That there are a few existing records.

    In order to get my website (hosted from a company called Enjin) to work with my domain, I must have "@" pointing to and a second "@" pointing to 107.154.xxX.xx. I also need www to point to as a cname record. In cPanel, I don't know what replaces the @ (root) subdomain.

    Now this is where it becomes a problem:
    I have a custom PHP page hosted at "/punishments-page", but right now, those two "@" subdomains are actually set as "*", because I don't know what should replace that, since @ is not allowed. So ideally, I want people to be able to go to and be taken to the page (or redirected to, but only if there is nothing after the ".us", because I need to display my PHP page within the site.

    The easiest way I see this being possible, but I am unaware on how to do so is:
    Set a subdomain that will replace "" but still access the files. If I change that A record to be "", that won't work because the files are listening for a connection without any subdomain.

    In the end, what needs to be changed is:
    The subdomain and/or domain that the files server listens on...
    It needs to become or something. And leave "" open for

    If you've made it this far, thanks! I hope you can help me.

    Any help is appreciated,
    #1 Techmo9j, Jul 29, 2017
    Last edited by a moderator: Jul 30, 2017
  2. 24x7server

    24x7server Well-Known Member

    Apr 17, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    "@" represents the current root domain, so check the DNS section that has domain name DNS records..
    If possible send in a screenshot with blurring the other information that could be critical.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    If you point "domain.tld" to a remote server via a DNS record, then access attempts to "domain.tld/subdirectory" will resolve to the remote server's IP address because you can't make separate DNS records for subdirectories. Instead, you may want to setup a subdomain that points to the remote server, and then setup Mod_Rewrite rules that redirect requests made to the domain name (and not it's subdirctories) to the subdomain.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice