In this KB
- Primary vs. Additional Domains
In the Cloudways platform, the Domain Management section inside the Application Management area has two options. One is for adding the Primary Domain of your website, and the other is for Additional Domains.
The primary domain is used for accessing the website that has been made live from the Cloudways server. Adding domain under this option will set the base URL / home URL in the database for your application.
For example, if the domain for the website is mysite.com then it can be added as either mysite.com (root domain) or www.mysite.com and should be pointed with A Record.
Alternatively, if the domain for the website is any sub-domain e.g. blog.mysite.com or shop.mysite.com, you can add it under Primary Domain field. It should also be pointed using A Record.
In this option, any additional domain whether it is a sub-domain e.g. shop.mysite.com or an another domain e.g. mysite2.com/www.mysite2.com for accessing the same website shall be added under Additional Domain option.
This option is also useful to add sub-domains if you have a multi-site (e.g. WordPress MU etc.).
Furthermore, the wildcard sub-domain e.g. *.mysite.com can also be added here but make sure that it points A record to the Cloudways server IP at the domain registrar.
Note that adding domain(s) under Additional Domains will not set or change the value for home URL / site URL in the database for your web application. It will only create an alias address to point to your web application.