Connecting a subdomain (e.g., blog.yourdomain.com or shop.yourdomain.com) to your OzSpeed website allows you to create separate sections of your website or host additional content, such as a blog or e-commerce store. You can easily set this up using your domain’s DNS settings and OzSpeed’s hPanel. Here’s a step-by-step guide to help you connect a subdomain to OzSpeed.
Step 1: Decide on the Subdomain #
Before starting, decide on the name of the subdomain you want to connect (e.g., blog, shop, store). This subdomain will be used to access a specific section of your website (e.g., blog.yourdomain.com).
Tip: #
- Choose a subdomain name that clearly indicates its purpose (e.g., blog for a blog, store for an e-commerce site).
Step 2: Log in to hPanel #
- Go to ozspeed.com.au and log in to your hPanel Dashboard.
- Click on My Websites and select the website where you want to connect the subdomain.
Step 3: Add the Subdomain in hPanel #
- In hPanel, go to Domains > Subdomains.
- Click “Add Subdomain”.
- Enter the name of your subdomain (e.g., blog) in the Subdomain Name field.
- Choose the domain you want to attach the subdomain to (e.g., yourdomain.com).
- Click “Create” to add the subdomain.
Tip: #
- After creating the subdomain, a folder for the subdomain (e.g., blog.yourdomain.com) will be created in the public_html directory.
Step 4: Point the Subdomain to OzSpeed via DNS #
To make your subdomain accessible, you need to update your DNS records at your domain registrar or DNS provider.
Option 1: Using A Record #
- Log in to your domain registrar (e.g., GoDaddy, Namecheap).
- Go to the DNS Management section.
- Click Add New Record and choose A Record as the type.
- Enter the following details:
- Name: Enter the subdomain name (e.g., blog).
- Value: Enter the IP address of your OzSpeed hosting (found in hPanel under DNS Settings).
- TTL: Set to Auto or 3600 (default).
Example A Record:
Type | Name | Value | TTL |
---|---|---|---|
A | blog | 203.0.113.123 | Auto |
- Click Save to apply the changes.
Option 2: Using CNAME Record #
If you prefer, you can use a CNAME record to point your subdomain to your OzSpeed website.
- Log in to your domain registrar and go to DNS Management.
- Click Add New Record and select CNAME as the type.
- Enter the following details:
- Name: Enter the subdomain name (e.g., blog).
- Target: Enter the URL of your OzSpeed website (e.g., yourwebsite.ozspeed.com).
- TTL: Set to Auto or 3600.
Example CNAME Record:
Type | Name | Content | TTL |
---|---|---|---|
CNAME | blog | yourwebsite.ozspeed.com | Auto |
- Click Save to update the record.
Tip: #
- It may take up to 24-48 hours for the DNS changes to propagate fully.
Step 5: Verify the Subdomain Connection #
Once the DNS changes have propagated, you can verify the connection.
How to Test: #
- Open your browser and visit the subdomain (e.g., blog.yourdomain.com).
- Check that your subdomain loads the content you’ve set up on your OzSpeed hosting.
Tip: #
- Use a DNS checker tool like DNSChecker to confirm that the subdomain points to the correct IP address or CNAME target.
Step 6: Enable SSL for the Subdomain #
Ensure your subdomain is secure by enabling SSL/TLS.
How to Enable SSL: #
- In hPanel, go to Security > SSL/TLS.
- Click Enable SSL for your subdomain (e.g., blog.yourdomain.com).
- Wait for the SSL certificate to be issued and activated.
Tip: #
- If your subdomain shows a “Not Secure” warning, clear your browser cache and recheck the SSL settings.
Step 7: Set Up Website Content for the Subdomain #
After connecting the subdomain, you can upload content or install a CMS (e.g., WordPress) to manage the subdomain’s site.
How to Upload Content: #
- In hPanel, go to Files > File Manager.
- Navigate to the folder created for your subdomain (e.g., blog folder in public_html).
- Upload your website files or install a CMS to start building the content for your subdomain.
Troubleshooting Tips #
- Subdomain Not Loading:
- Ensure the DNS record is configured correctly and allow time for propagation.
- Clear your DNS cache (
ipconfig /flushdns
on Windows orsudo dscacheutil -flushcache
on Mac).
- SSL Certificate Error:
- Reissue the SSL certificate in hPanel if it hasn’t been applied automatically.
- Make sure the subdomain is listed in the SSL configuration.
- “Server Not Found” Error:
- Verify that the subdomain DNS record points to the correct IP address or CNAME target.
- Double-check the spelling of the subdomain in the DNS settings.
- Slow Loading Times:
- Enable caching in hPanel and use a CDN (e.g., Cloudflare) to improve the loading speed of your subdomain.
Additional Tips: #
- Use Analytics: Set up Google Analytics for your subdomain to track visitor behavior and performance separately from your main domain.
- Create a Staging Environment: Use a staging subdomain (e.g., staging.yourdomain.com) for testing changes before deploying them to the live site.
- Optimize for SEO: Ensure your subdomain has its own meta tags and sitemap for better visibility in search engines.