How to convert cpanel accounts to addon domains function
Hello folks,
Would like to convert some of the cpanel accounts to addon domain function of a single cpanel account. Is there an automated process for this?
Thanks in advance.
-
Hello folks, Would like to convert some of the cpanel accounts to addon domain function of a single cpanel account. Is there an automated process for this? Thanks in advance.
There is no tool to do that.0 -
There is no tool to do that.
Thanks @quietFinn. Wondering if cpanel is working on a tool for this. Surely, there would be a demand for such a tool. Can cpanel team respond? Thanks.0 -
There is currently no tool to convert an account to an addon domain. To facilitate this you'd need to do it manually, the documentation on manual migrations would be useful to understand which files should be moved How to Manually Migrate Accounts to cPanel from Unsupported Control Panels - cPanel Knowledge Base - cPanel Documentation As far as the request for the tool goes, I recommend opening a feature request [ 0 -
Hi @cPanelLauren, Thank you for your guidance. I referred to this page How to Manually Migrate Accounts to cPanel from Unsupported Control Panels - cPanel Knowledge Base - cPanel Documentation, and having some issues, hopefully you could clarify some of these issues. Firstly, lets assume that the cpanel account owner is domainA and the domain we will add is domainB. After adding the domainB when I load domainB in the browser, in the address bar, it shows the web address as 0 -
When you go to cPanel>>Domains>>Addon Domains what is set for redirection and the document root?
Hi @cPanelLauren. Here is the info you asked for: Document root: /public_html/domainB.com Redirects to: Not redirected I suppose a redirection needs to bet set, not sure what it should be, waiting to hear from you. I understood your answers about copying of other files.0 -
Actually, no it shouldn't need to be redirected at all. The addon domain being in that specific folder should be fine and should not cause it to come up at https://domaina.com/domainb/
This is also how I have my test domain configured (this won't resolve anywhere but locally) Is there any redirection set for the primary domain? You can see this in cPanel>>Domains>>Redirects as well as/home/$user/public_html/.htaccess
0 -
The redirect in the .htaccess file redirect users from their original location to the same location but using HTTPS: RewriteRule ^(.*)$ - namely that it reroutes you to https. If you comment out the entire rewrite section in the .htaccess and attempt to view domainb in a browser with its cache cleared do you still get redirected?
0 -
Hi @cPanelLauren. I acted as per your suggestion and the issue is resolved. Many thanks for your help. is it possible to achieve both outcomes were for both domains https is forced without breaking the redirects.
I'm glad to hear that was the issue and it's resolved now. It is possible to do this but you'd need to only redirect the primary domain to https. What you were doing prior was redirected everything to the primary domain and https. There is a feature in cPanel>>Domains>>Domains which will you can switch on "Force HTTPS" which adds a rewrite to https in the apache configuration for that specific VirtualHost.0 -
I'm glad to hear that was the issue and it's resolved now. It is possible to do this but you'd need to only redirect the primary domain to https. What you were doing prior was redirected everything to the primary domain and https. There is a feature in cPanel>>Domains>>Domains which will you can switch on "Force HTTPS" which adds a rewrite to https in the apache configuration for that specific VirtualHost.
Hi @cPanelLauren. Many thanks for your help. All is good now.0
Please sign in to leave a comment.
Comments
12 comments