https://in.godaddy.com/help/add-addon-domains-to-host-multiple-websites-in-linux-hosting-8877
in cPanel you go to 'Addon domains.'
Buy the domain
ACTUALLY, you can just go to your Godaddy panel for Hosting and click 'add site' and type i the domain you bought. (However, I'm not sure if its JUST this only, because I also went to cPanel > Domains > and add a new domain (not subdomain) and typed public_html/thedomain.com and added it also (I did this before adding it to Godaddy > Hosting.
1) Go to the domain's DNS. Change the A record (only the one field I guess) to the domains IP.
Then, you can (if you want) go to cloudflare and do cloudflare. You +add site on cloudflare, enter the domain, then click ok when it retrieves what it finds for that domain's name servers, and it says change to karl, and you go to godaddy to the dns for that domain and change the nameservers to those karl.
2) Go into cPanel (log into it the way you usually do). Go to +Addon domains. Type in the domain. It will create a new folder in the public.html.
Now it should work when you create an index.php file there and put hello on it.
Comments: 0