Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ShamiCanCode's avatar

CPANEL

I have two websites domain in godaddy like abc.com xyz.co.uk

And now I buy one hosting from Namecheap Stellar package which says you can host three websites

Now I want to use this one hosting to host both websites

How can I achieve this?

0 likes
13 replies
LaryAI's avatar
Level 58

You can achieve this by setting up a subdomain for each website. To do this, you will need to log into your cPanel and navigate to the Subdomains section. From there, you can create a subdomain for each website. For example, you could create a subdomain for abc.com called "abc" and a subdomain for xyz.co.uk called "xyz".

Once you have created the subdomains, you will need to point the DNS records for each domain to the IP address of your hosting server. You can find the IP address in the cPanel under the "Account Information" section.

Once the DNS records have been updated, you can then upload the files for each website to the corresponding subdomain.

<VirtualHost *:80>
    ServerName abc.com
    ServerAlias www.abc.com
    DocumentRoot /var/www/html/abc
</VirtualHost>

<VirtualHost *:80>
    ServerName xyz.co.uk
    ServerAlias www.xyz.co.uk
    DocumentRoot /var/www/html/xyz
</VirtualHost>
MohamedTammam's avatar

You need to copy your website content (like: files, databae, etc) to the new hosting on Namecheap and then you need to redirect your domains to the Namecheap IP.

1 like
MohamedTammam's avatar

@ShamiCanCode You can, you just need to redirect your domain to the same IP. and you should update your Nginx or Apache.

Or it will be configured using a dashboard from your service provider.

1 like
ShamiCanCode's avatar

@MohamedTammam Actually, my website is working fine abc.com on Namecheap hosting domain and hosting both are in Namecheap.

Today I buy a new domain on GoDaddy named xyz.co.uk Now I want to host this domain on Namecheap hosting because I bought a Namecheap stellar package where I host three websites at a time.

Now when I add an addon Domain. The website host is on xyz.abc.com not on xyz.co.uk

Please or to participate in this conversation.