# Subdomains

### What Are Subdomains?

When browsing the web, you may notice URLs that change as you navigate different sections of a site. This change often involves **subdomains**, which are additional parts of your main domain name. Subdomains help organize content and facilitate navigation within your website.

#### Purpose of Subdomains

Subdomains are primarily used to separate various sections of a website. Here are some common uses:

* **Thematic Separation:** For instance, a blog at `blogname.com` might have specific subdomains like `sport.blogname.com` and `fashion.blogname.com` to categorize different topics.
* **Language Variations:** You can create language-specific subdomains such as `en.example.com` for English and `fr.example.com` for French.
* **Mobile Versions:** A subdomain like `m.example.com` can host a mobile-friendly version of your website.
* **Dedicated Sections:** Subdomains can point to specific pages or functions, such as `portfolio.example.com` for a personal portfolio or `store.example.com` for an online store.

#### The Structure of Subdomains

A subdomain is essentially a child domain of your main domain. For example, `north.example.com` and `south.example.com` are subdomains of `example.com`, which is part of the `.com` top-level domain (TLD). The most commonly recognized subdomain is `www`, representing the World Wide Web, and is typically included with domain purchases.

#### Benefits of Using Subdomains

If you plan to expand your website's functionality with features like a blog, forum, or online store, utilizing subdomains is an effective way to manage these components separately from your primary site.

#### How to Create a Subdomain in cPanel

To add a subdomain via cPanel, follow these steps:

1. **Log in to your cPanel account.**
2. **Navigate to the Domains section** and click on **Create A New Domain**.
3. **Enter your subdomain name** in the first field (e.g., "server" for `server.clouduxe.com`).
4. **Specify the domain** for which you’re creating the subdomain in the second field.
5. **Set the Document Root**, which is the directory where the subdomain's files will be located.

{% hint style="info" %}
**Tip:** Subdomains can help enhance user experience by allowing visitors to access specific content quickly and efficiently.
{% endhint %}

### Conclusion

In summary, subdomains are valuable tools for organizing your website and separating different functionalities. By planning and implementing subdomains effectively, you can create a more user-friendly experience and keep your site structured.

If you have any questions about setting up subdomains or need assistance, feel free to reach out to Clouduxe support!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.clouduxe.com/managing-domains/subdomains.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
