Creating a subdomain on your cPanel hosting is a simple process that allows you to create separate sections within your website. For example, you can create a blog subdomain (blog.yourdomain.com) or a shop subdomain (shop.yourdomain.com).
Here's a step-by-step guide:
Step 1: Log in to your cPanel
- Open your web browser and navigate to your cPanel login page. This is usually accessible through your web hosting provider's website or by typing
yourdomain.com/cpanel
. - Enter your cPanel username and password to log in.
Step 2: Find the "Domains" Section
- Once you're logged in, look for the "Domains" section in the cPanel interface. It might be labeled as "Domains," "Subdomains," or "Add-on Domains."
- Click on the appropriate option to access the subdomain management tools.
Step 3: Create a New Subdomain
- You'll be presented with a form to create a new subdomain.
- In the "Subdomain" field, enter the name you want to use for your subdomain. For example, if you want to create a "blog" subdomain, type "blog" in this field.
- In the "Document Root" field, select the directory where you want to store the files for your subdomain. This is usually the same as your main website's document root, but you can choose a different one if needed.
- Click on the "Create" button to create your subdomain.
Step 4: Verify Your Subdomain
- After creating your subdomain, check if it's working correctly. You can do this by typing the subdomain URL (e.g., blog.yourdomain.com) in your web browser.
- If you see the content you expect, your subdomain has been successfully installed.
Additional Considerations
- Subdomain Pointing: If you are using a different server for your subdomain, you'll need to configure your DNS records to point the subdomain to the correct server.
- Subdomain Content: Remember to create the necessary files and folders in the document root you selected for your subdomain. This will contain the content that will be displayed when someone visits your subdomain.
Example
Let's say you want to create a subdomain called "blog" for your website example.com
. You would follow these steps:
- Log in to your cPanel.
- Go to the "Domains" section.
- In the "Subdomain" field, type "blog."
- Select the "Document Root" for your subdomain.
- Click on "Create."
Now, you can access your blog subdomain at blog.example.com
.
Conclusion
Creating a subdomain on cPanel is a straightforward process that can help you organize your website and create separate sections for specific content. By following these steps, you can easily set up a subdomain and start using it for your website.