{"id":28296,"date":"2025-07-02T09:49:42","date_gmt":"2025-07-02T07:49:42","guid":{"rendered":"https:\/\/tremhost.com\/blog\/?p=28296"},"modified":"2025-07-02T09:49:42","modified_gmt":"2025-07-02T07:49:42","slug":"how-to-set-up-a-subdomain-for-your-website","status":"publish","type":"post","link":"https:\/\/tremhost.com\/blog\/how-to-set-up-a-subdomain-for-your-website\/","title":{"rendered":"How to set up a subdomain for your website."},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p>A <strong>subdomain<\/strong> is an extension of your main domain\u2014think <code>blog.yourwebsite.com<\/code> or <code>shop.yourwebsite.com<\/code>. Subdomains are great for organizing your website, hosting different sections, or running separate apps (like a forum or store). Setting one up is easier than you might think!<\/p>\n<hr \/>\n<h3>1. <strong>Decide on Your Subdomain Name<\/strong><\/h3>\n<p>First, choose what you want your subdomain to be called. Some common examples:<\/p>\n<ul>\n<li><code>blog.yourwebsite.com<\/code> (for a blog)<\/li>\n<li><code>shop.yourwebsite.com<\/code> (for an online store)<\/li>\n<li><code>support.yourwebsite.com<\/code> (for customer support)<\/li>\n<\/ul>\n<p>You can use almost any word or phrase (without spaces or special characters).<\/p>\n<hr \/>\n<h3>2. <strong>Log in to Your Hosting or Domain Control Panel<\/strong><\/h3>\n<ul>\n<li>If your hosting provider manages your DNS (common if your nameservers point to your host), log into your hosting account (e.g., Tremhost cPanel or similar).<\/li>\n<li>If your DNS is managed with your domain registrar, log in there.<\/li>\n<\/ul>\n<hr \/>\n<h3>3. <strong>Find the Subdomain or DNS Management Section<\/strong><\/h3>\n<ul>\n<li>In cPanel, look for a section called <strong>\u201cSubdomains\u201d<\/strong>.<\/li>\n<li>In other control panels or registrars, look for <strong>\u201cDNS Management,\u201d \u201cZone Editor,\u201d<\/strong> or similar.<\/li>\n<\/ul>\n<hr \/>\n<h3>4. <strong>Create the Subdomain<\/strong><\/h3>\n<p><strong>If using cPanel or similar hosting control panel:<\/strong><\/p>\n<ul>\n<li>Go to <strong>Subdomains<\/strong>.<\/li>\n<li>Enter your subdomain prefix (e.g., <code>blog<\/code>).<\/li>\n<li>Choose your main domain from the dropdown.<\/li>\n<li>The system will automatically create the subdomain and set up a new folder for its files (like <code>\/public_html\/blog<\/code>).<\/li>\n<li>Click <strong>Create<\/strong>.<\/li>\n<\/ul>\n<p><strong>If editing DNS manually:<\/strong><\/p>\n<ul>\n<li>Go to the DNS management section.<\/li>\n<li>Add a new <strong>A record<\/strong> for your subdomain:\n<ul>\n<li><strong>Name\/Host:<\/strong> The subdomain prefix (e.g., <code>blog<\/code>)<\/li>\n<li><strong>Type:<\/strong> A<\/li>\n<li><strong>Value\/Points to:<\/strong> The IP address of the server where the subdomain should go (often the same as your main site, unless you\u2019re hosting it elsewhere)<\/li>\n<\/ul>\n<\/li>\n<li>Save your changes.<\/li>\n<\/ul>\n<p><em>Note: You can also use a <strong>CNAME record<\/strong> if you want your subdomain to point to another domain name (such as a hosted blog platform).<\/em><\/p>\n<hr \/>\n<h3>5. <strong>Upload or Build Your Subdomain\u2019s Content<\/strong><\/h3>\n<p>If your subdomain is hosted on the same server:<\/p>\n<ul>\n<li>Use your hosting file manager or FTP to upload files to the new subdomain folder (e.g., <code>\/public_html\/blog<\/code>).<\/li>\n<li>Install a CMS (like WordPress) or upload your site files as needed.<\/li>\n<\/ul>\n<p>If your subdomain points elsewhere (like an external shop or blog), follow the third-party service\u2019s setup instructions.<\/p>\n<hr \/>\n<h3>6. <strong>Wait for DNS Propagation<\/strong><\/h3>\n<p>If you made DNS changes, remember: it can take a few minutes to 24 hours for your new subdomain to become available everywhere.<\/p>\n<hr \/>\n<h3>7. <strong>Test Your Subdomain<\/strong><\/h3>\n<p>Type your subdomain (e.g., <code>blog.yourwebsite.com<\/code>) into your browser. You should see your new site or folder!<\/p>\n<hr \/>\n<h2>In Summary<\/h2>\n<ol>\n<li>Choose your subdomain name.<\/li>\n<li>Log in to your hosting or DNS control panel.<\/li>\n<li>Use the Subdomains or DNS management tool to create the subdomain.<\/li>\n<li>Upload or build content for your subdomain.<\/li>\n<li>Wait for DNS propagation and test your new subdomain.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>A subdomain is an extension of your main domain\u2014think blog.yourwebsite.com or shop.yourwebsite.com. Subdomains are great for organizing your website, hosting different sections, or running separate apps (like a forum or store). Setting one up is easier than you might think! 1. Decide on Your Subdomain Name First, choose what you want your subdomain to be [&hellip;]<\/p>\n","protected":false},"author":226,"featured_media":28297,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"tdm_status":"","tdm_grid_status":"","footnotes":""},"categories":[49],"tags":[],"class_list":{"0":"post-28296","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tips"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/28296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/users\/226"}],"replies":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/comments?post=28296"}],"version-history":[{"count":2,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/28296\/revisions"}],"predecessor-version":[{"id":28299,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/posts\/28296\/revisions\/28299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/media\/28297"}],"wp:attachment":[{"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/media?parent=28296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/categories?post=28296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tremhost.com\/blog\/wp-json\/wp\/v2\/tags?post=28296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}