Changing subdomain that will access files
Hey guys!
I'm new to using cPanel and am in need of some help.
So I have a domain from namecheap.com (example.us)
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 107.154.xxx.xx and a second "@" pointing to 107.154.xxX.xx. I also need www to point to app.domain.com. 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 example.us and be taken to the domain.com page (or redirected to example.us), but only if there is nothing after the ".us", because I need to display my PHP page within the domain.com 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 "example.us." but still access the files. If I change that A record to be "files.example.us.", 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 files.example.us or something. And leave "example.us." open for domain.com.
If you've made it this far, thanks! I hope you can help me.
Any help is appreciated,
Thanks,
Techmo
-
Hi, "@" 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. 0 -
So ideally, I want people to be able to go to example.us and be taken to the domain.com page (or redirected to example.us), but only if there is nothing after the ".us", because I need to display my PHP page within the domain.com site.
Hello, 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.0
Please sign in to leave a comment.
Comments
2 comments