> For the complete documentation index, see [llms.txt](https://domainmappingsystem.gitbook.io/domainmappingsystem-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://domainmappingsystem.gitbook.io/domainmappingsystem-docs/features/mapping-with-subdomains.md).

# Subdomain Mapping

If you have a separate WordPress website that is already a subdomain, then configuration in cPanel may be slightly different.&#x20;

Instead of using Alias Domains, you can go to Subdomains and add a second subdomain.&#x20;

Log in to cPanel, and click Subdomains:&#x20;

![Subdomains option in cPanel](https://1402200364-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdK4RkxW1x8s0Z8rF9f%2F-MfE_kJtfFvgQSM63JEF%2F-MfEagZxgxLMTOw2TvV2%2Fsubdomains-cpanel.png?alt=media\&token=c5d888e0-de72-4d81-998b-956e76124a8c)

Then, add your second subdomain with the same root as your primary subdomain.&#x20;

![Adding a second subdomain with the same root as primary subdomain](https://1402200364-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdK4RkxW1x8s0Z8rF9f%2F-MfE_kJtfFvgQSM63JEF%2F-MfEb-KgLslJAyK9RvFA%2Fcreating-second-subdomain.png?alt=media\&token=4ae7516d-16de-45e5-beb7-08c112829943)

Here is what the final subdomain setup might look like:&#x20;

![Multiple subdomains with the same directory in cPanel](https://1402200364-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdK4RkxW1x8s0Z8rF9f%2F-MfE_kJtfFvgQSM63JEF%2F-MfEawgnWqfbNHoaMOkp%2Fmultiple-subdomains.png?alt=media\&token=ac416038-addc-4783-925f-ca095d109d6d)

{% content-ref url="/pages/-MdPDVA425kx\_H-rSxZ-" %}
[How do I set up a Domain Alias with cPanel?](/domainmappingsystem-docs/integrations-and-compatibility/what-hosting-companies-are-supported/how-do-i-set-up-a-domain-alias-with-cpanel.md)
{% endcontent-ref %}
