Skip to main content

A Step-by-Step Guide to Setting Up a Custom Subdomain for Your Blog

Guide about A Step-by-Step Guide to Setting Up a Custom Subdomain for Your Blog

Written by Mayank Baswal

Founder of is-cool-me · DNS & Platform Infrastructure

Mayank Baswal maintains the is-cool-me platform and writes technical guides focused on DNS configuration, subdomain infrastructure, SSL troubleshooting, deployment workflows, and platform reliability.

Reviewed by is-cool-me Technical Review
## Introduction Setting up a custom subdomain for your blog is an essential step in establishing a professional online presence. A custom subdomain allows you to personalize your blog's URL, making it more memorable and easier to share with others. On the is-cool-me platform, developers can create custom subdomains for their projects, such as "myproject.is-pro.dev" or "blog.myproject.is-pro.dev". This guide will walk you through the process of setting up a custom subdomain for your blog on is-cool-me, covering the prerequisites, step-by-step instructions, and common pitfalls to avoid. By the end of this guide, you will have a fully functional custom subdomain for your blog, such as "blog.myproject.is-pro.dev". The motivation behind setting up a custom subdomain is to create a unique and recognizable identity for your blog. With a custom subdomain, you can establish a consistent brand image and make it easier for readers to find and remember your blog. Additionally, a custom subdomain can improve your blog's search engine optimization (SEO) by allowing you to target specific keywords and phrases in your URL. For example, if your blog is about web development, you can create a custom subdomain like "dev.myproject.is-pro.dev" to target the keyword "dev". ## Prerequisites Before setting up a custom subdomain for your blog, you need to have a few prerequisites in place. First, you need to have an is-cool-me account and a project set up on the platform. If you haven't already, sign up for an is-cool-me account and create a new project, such as "myproject.is-pro.dev". Next, you need to have a basic understanding of DNS and domain configuration. You don't need to be an expert, but you should be familiar with terms like CNAME records and DNS propagation. Finally, you need to have a blog set up on your is-cool-me project, such as a WordPress or Ghost installation. If you haven't already, set up your blog and make sure it's accessible via a temporary URL, such as "myproject.is-pro.dev/blog". ## Step-by-step instructions Here are the step-by-step instructions for setting up a custom subdomain for your blog: 1. Log in to your is-cool-me account and navigate to your project settings. 2. Click on the "Domains" tab and then click on the "Add a domain" button. 3. Enter your custom subdomain, such as "blog.myproject.is-pro.dev", and click on the "Add domain" button. 4. Verify your domain ownership by clicking on the "Verify" button. 5. Set up your DNS records by creating a new CNAME record that points to your is-cool-me project. For example, you can create a CNAME record like this: ``` NAME: blog TYPE: CNAME VALUE: myproject.is-pro.dev TTL: 300 ``` 6. Wait for DNS propagation to complete, which can take anywhere from a few minutes to a few hours. 7. Once DNS propagation is complete, update your blog's configuration to use the new custom subdomain. For example, you can update your WordPress configuration like this: ```php define('WP_HOME', 'https://blog.myproject.is-pro.dev'); define('WP_SITEURL', 'https://blog.myproject.is-pro.dev'); ``` 8. Test your custom subdomain by accessing your blog via the new URL, such as "blog.myproject.is-pro.dev". ## Configuration deep-dive When setting up a custom subdomain for your blog, there are several configuration options to consider. Here are some examples of configuration options with real values: * **CNAME record**: A CNAME record is used to point your custom subdomain to your is-cool-me project. For example, you can create a CNAME record like this: ``` NAME: blog TYPE: CNAME VALUE: myproject.is-pro.dev TTL: 300 ``` * **DNS propagation**: DNS propagation is the process of updating DNS records across the internet. This can take anywhere from a few minutes to a few hours, depending on the DNS provider and the location of the DNS servers. * **Blog configuration**: Once you've set up your custom subdomain, you need to update your blog's configuration to use the new URL. For example, you can update your WordPress configuration like this: ```php define('WP_HOME', 'https://blog.myproject.is-pro.dev'); define('WP_SITEURL', 'https://blog.myproject.is-pro.dev'); ``` * **SSL certificates**: If you want to use HTTPS with your custom subdomain, you need to set up an SSL certificate. is-cool-me provides free SSL certificates for custom subdomains, so you can enable HTTPS for your blog like this: ```bash is-cool-me ssl enable --domain blog.myproject.is-pro.dev ``` Here is a comparison of the different configuration options: | Option | Description | Example | | --- | --- | --- | | CNAME record | Points custom subdomain to is-cool-me project | `NAME: blog, TYPE: CNAME, VALUE: myproject.is-pro.dev` | | DNS propagation | Updates DNS records across the internet | `TTL: 300` | | Blog configuration | Updates blog to use new custom subdomain | `define('WP_HOME', 'https://blog.myproject.is-pro.dev')` | | SSL certificates | Enables HTTPS for custom subdomain | `is-cool-me ssl enable --domain blog.myproject.is-pro.dev` | ## Common pitfalls and solutions Here are some common pitfalls to watch out for when setting up a custom subdomain for your blog: 1. **Incorrect CNAME record**: Make sure your CNAME record points to the correct is-cool-me project. If your CNAME record is incorrect, your custom subdomain won't work. 2. **DNS propagation issues**: DNS propagation can take time, so be patient and wait for the process to complete. If you're experiencing issues with DNS propagation, try checking your DNS records or contacting your DNS provider. 3. **Blog configuration errors**: Make sure you've updated your blog's configuration to use the new custom subdomain. If you haven't, your blog won't work with the new URL. 4. **SSL certificate issues**: If you're using HTTPS with your custom subdomain, make sure you've set up an SSL certificate correctly. If you're experiencing issues with your SSL certificate, try checking your certificate configuration or contacting your certificate provider. 5. **Domain ownership verification**: Make sure you've verified your domain ownership correctly. If you haven't, your custom subdomain won't work. ## Best practices Here are some best practices to keep in mind when setting up a custom subdomain for your blog: * **Use a consistent naming convention**: Use a consistent naming convention for your custom subdomains, such as "blog.myproject.is-pro.dev" or "dev.myproject.is-pro.dev". * **Test your custom subdomain**: Test your custom subdomain thoroughly to make sure it's working correctly. * **Monitor your DNS records**: Monitor your DNS records regularly to make sure they're up-to-date and correct. * **Use HTTPS**: Use HTTPS with your custom subdomain to ensure secure communication between your blog and your readers. * **Keep your blog configuration up-to-date**: Keep your blog configuration up-to-date to ensure compatibility with your custom subdomain. ## Troubleshooting section If you're experiencing issues with your custom subdomain, here are some troubleshooting steps to try: 1. **Check your DNS records**: Check your DNS records to make sure they're correct and up-to-date. 2. **Check your blog configuration**: Check your blog configuration to make sure it's updated to use the new custom subdomain. 3. **Check your SSL certificate**: Check your SSL certificate to make sure it's set up correctly and working properly. 4. **Check your domain ownership verification**: Check your domain ownership verification to make sure it's complete and correct. 5. **Contact support**: If you're still experiencing issues, contact is-cool-me support for further assistance. ## Deployment scenario from operations Here's a real-world example of deploying a custom subdomain for a blog: Let's say you have a blog set up on your is-cool-me project, such as "myproject.is-pro.dev/blog". You want to set up a custom subdomain for your blog, such as "blog.myproject.is-pro.dev". Here are the steps you would take: * Create a new CNAME record that points to your is-cool-me project: `NAME: blog, TYPE: CNAME, VALUE: myproject.is-pro.dev`. * Verify your domain ownership by clicking on the "Verify" button. * Update your blog's configuration to use the new custom subdomain: `define('WP_HOME', 'https://blog.myproject.is-pro.dev')`. * Test your custom subdomain to make sure it's working correctly. Here is a table comparing the different deployment scenarios: | Scenario | Description | Example | | --- | --- | --- | | Blog deployment | Deploys blog to is-cool-me project | `myproject.is-pro.dev/blog` | | Custom subdomain deployment | Deploys custom subdomain for blog | `blog.myproject.is-pro.dev` | | SSL certificate deployment | Deploys SSL certificate for custom subdomain | `is-cool-me ssl enable --domain blog.myproject.is-pro.dev` | ## Common mistakes Here are some common mistakes to watch out for when setting up a custom subdomain for your blog: * **Incorrect CNAME record**: Make sure your CNAME record points to the correct is-cool-me project. * **DNS propagation issues**: DNS propagation can take time, so be patient and wait for the process to complete. * **Blog configuration errors**: Make sure you've updated your blog's configuration to use the new custom subdomain. * **SSL certificate issues**: If you're using HTTPS with your custom subdomain, make sure you've set up an SSL certificate correctly. * **Domain ownership verification**: Make sure you've verified your domain ownership correctly. ## How to verify it works Here are the steps to verify that your custom subdomain is working correctly: 1. **Test your custom subdomain**: Test your custom subdomain by accessing your blog via the new URL, such as "blog.myproject.is-pro.dev". 2. **Check your DNS records**: Check your DNS records to make sure they're correct and up-to-date. 3. **Check your blog configuration**: Check your blog configuration to make sure it's updated to use the new custom subdomain. 4. **Check your SSL certificate**: Check your SSL certificate to make sure it's set up correctly and working properly. 5. **Verify domain ownership**: Verify your domain ownership to make sure it's complete and correct. ## Conclusion with next steps In conclusion, setting up a custom subdomain for your blog on is-cool-me is a straightforward process that requires careful attention to detail. By following the steps outlined in this guide, you can create a custom subdomain for your blog and establish a professional online presence. Next steps include: * **Monitoring your DNS records**: Monitor your DNS records regularly to make sure they're up-to-date and correct. * **Updating your blog configuration**: Keep your blog configuration up-to-date to ensure compatibility with your custom subdomain. * **Using HTTPS**: Use HTTPS with your custom subdomain to ensure secure communication between your blog and your readers. ## FAQ Here are some frequently asked questions about setting up a custom subdomain for your blog: **Q: What is a custom subdomain?** A: A custom subdomain is a personalized URL for your blog, such as "blog.myproject.is-pro.dev". It allows you to establish a unique and recognizable identity for your blog. **Q: How do I set up a custom subdomain for my blog?** A: To set up a custom subdomain for your blog, you need to create a new CNAME record that points to your is-cool-me project, verify your domain ownership, and update your blog's configuration to use the new custom subdomain. **Q: What is DNS propagation?** A: DNS propagation is the process of updating DNS records across the internet. It can take anywhere from a few minutes to a few hours, depending on the DNS provider and the location of the DNS servers. **Q: How do I use HTTPS with my custom subdomain?** A: To use HTTPS with your custom subdomain, you need to set up an SSL certificate. is-cool-me provides free SSL certificates for custom subdomains, so you can enable HTTPS for your blog like this: `is-cool-me ssl enable --domain blog.myproject.is-pro.dev`. **Q: What are some common pitfalls to watch out for when setting up a custom subdomain?** A: Some common pitfalls to watch out for when setting up a custom subdomain include incorrect CNAME records, DNS propagation issues, blog configuration errors, SSL certificate issues, and domain ownership verification errors.
Share this article Share on X Share on LinkedIn

Explore More