How to add an addon domain to cpanel with same name but different tld?

与世无争的帅哥 提交于 2020-01-17 06:03:46

问题


I have a cpanel account with option for unlimited add-on domains. I have added a domain, say, example.org. For this, cpanel has also created a sub-domain for main hosting domain example.main-domain.com.

Now I have purchased another domain example.com. When I try to add it through addon domains option, cpanel gives an error that subdomain example.main-domain.com already exists.

Is there a way to add the second domain in this scenario?


回答1:


The first part of the subdomain is determined by the Subdomain or FTP Username: you set when you add the subdomain.

Cpanel auto-fills this field with the first part of the domain name but you can enter anything you like.

So when you go to add example.com Cpanel will auto-fill the Subdomain or FTP Username: to example and try to create the subdomain example.main-domain.com which already exists from when you added example.org in the same way so it will throw an error like

(XID bqnr82) A DNS entry for the domain “example.main-domain.com” already exists.

Instead when you add example.com enter any unused value into the Subdomain or FTP Username: field, such as exampledotcom and the subdomain cpannel creates will be at

exampledotcom.main-domain.com

This is explained and discussed here

https://forums.cpanel.net/threads/addon-domains-differing-only-in-tld-extension.249141/




回答2:


You can edit the sub-domain name to example1 while adding the other domain example.com. So, that the next sub-domain will be example1.main-domain.com.




回答3:


When you create addon domain it also creates subdomain for the addon domain. Now you since create subdomain with name example already so when you attempt to add addon domain with name example.com it could not create subdomain example since it was already added. Just rename already created subdomain and attempt to add the server. It will fix the problem.



来源:https://stackoverflow.com/questions/37753676/how-to-add-an-addon-domain-to-cpanel-with-same-name-but-different-tld

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!