{"id":604,"date":"2024-08-29T11:16:00","date_gmt":"2024-08-29T11:16:00","guid":{"rendered":"https:\/\/www.salemwebhosting.in\/articles\/?p=604"},"modified":"2024-09-01T11:58:30","modified_gmt":"2024-09-01T11:58:30","slug":"what-is-subdomain","status":"publish","type":"post","link":"https:\/\/www.salemwebhosting.in\/articles\/what-is-subdomain\/","title":{"rendered":"What is Subdomain: Resolving A Subdomain Not Working Issue in cPanel"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"what-is-subdomain\">What is Subdomain<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"556\" src=\"https:\/\/www.salemwebhosting.in\/articles\/wp-content\/uploads\/2024\/08\/subdomain.png\" alt=\"What is Subdomain\" class=\"wp-image-605\" style=\"width:497px;height:auto\" srcset=\"https:\/\/www.salemwebhosting.in\/articles\/wp-content\/uploads\/2024\/08\/subdomain.png 580w, https:\/\/www.salemwebhosting.in\/articles\/wp-content\/uploads\/2024\/08\/subdomain-300x288.png 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure>\n<\/div>\n\n\n<p>A <strong><a href=\"https:\/\/www.squarebrothers.com\/\" data-type=\"link\" data-id=\"https:\/\/www.squarebrothers.com\/\" rel=\"nofollow noopener\" target=\"_blank\">subdomain<\/a><\/strong> is a domain that is part of a larger main domain (or parent domain). It is used to organize and navigate to different sections of a website, often representing different areas or functions. Subdomains are created by adding a prefix to the main domain name, separated by a dot.<\/p>\n\n\n\n<div class=\"wp-block-rank-math-toc-block\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#what-is-subdomain\">What is Subdomain<\/a><ul><li><a href=\"#example-structure\">Example Structure:<\/a><\/li><li><a href=\"#uses-of-subdomains\">Uses of Subdomains:<\/a><\/li><\/ul><\/li><li><a href=\"#resolving-a-subdomain-not-working-issue-in-c-panel\">Resolving A Subdomain Not Working Issue in cPanel<\/a><ul><li><a href=\"#1-verify-subdomain-creation\">1. Verify Subdomain Creation<\/a><\/li><li><a href=\"#2-check-dns-settings\">2. Check DNS Settings<\/a><\/li><li><a href=\"#3-allow-dns-propagation\">3. Allow DNS Propagation<\/a><\/li><li><a href=\"#4-check-htaccess-configuration\">4. Check .htaccess Configuration<\/a><\/li><li><a href=\"#5-verify-the-web-server-configuration\">5. Verify the Web Server Configuration<\/a><\/li><li><a href=\"#6-check-file-permissions\">6. Check File Permissions<\/a><\/li><li><a href=\"#7-clear-browser-cache\">7. Clear Browser Cache<\/a><\/li><li><a href=\"#8-test-with-a-different-network\">8. Test with a Different Network<\/a><\/li><li><a href=\"#9-check-firewall-settings\">9. Check Firewall Settings<\/a><\/li><li><a href=\"#10-contact-support\">10. Contact Support<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-structure\">Example Structure:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Main Domain:<\/strong> <code>example.com<\/code><\/li>\n\n\n\n<li><strong>Subdomains:<\/strong>\n<ul class=\"wp-block-list\">\n<li><code>blog.example.com<\/code><\/li>\n\n\n\n<li><code>store.example.com<\/code><\/li>\n\n\n\n<li><code>support.example.com<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"uses-of-subdomains\">Uses of Subdomains:<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Organization of Content:<\/strong> Subdomains help in organizing different sections of a website. For example, a blog could be hosted on <code>blog.example.com<\/code> while the main site remains on <code>example.com<\/code>.<\/li>\n\n\n\n<li><strong>Separate Functionality:<\/strong> Subdomains can be used to separate different functionalities of a website. For instance, an online store could be on <code>shop.example.com<\/code>, while the main site provides information about the company.<\/li>\n\n\n\n<li><strong>Localization:<\/strong> Subdomains can be used for different language versions of a website. For instance, <code>en.example.com<\/code> for English, <code>fr.example.com<\/code> for French, and so on.<\/li>\n\n\n\n<li><strong>Testing and Development:<\/strong> Subdomains are often used for testing and development purposes, such as <code>dev.example.com<\/code> or <code>staging.example.com<\/code>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"resolving-a-subdomain-not-working-issue-in-c-panel\">Resolving A Subdomain Not Working Issue in cPanel<\/h2>\n\n\n\n<p>If you&#8217;re facing an issue where a subdomain is not working in cPanel, there are several potential causes and corresponding troubleshooting steps to resolve the issue. Here\u2019s a step-by-step guide:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-verify-subdomain-creation\">1. <strong>Verify Subdomain Creation<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log in to cPanel.<\/li>\n\n\n\n<li>Go to <strong>Domains<\/strong> &gt; <strong>Subdomains<\/strong>.<\/li>\n\n\n\n<li>Ensure that the subdomain is correctly listed and points to the correct document root (the folder where its files are stored).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-check-dns-settings\">2. <strong>Check DNS Settings<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure that the DNS record for the subdomain is correctly configured.<\/li>\n\n\n\n<li>Navigate to <strong>Domains<\/strong> &gt; <strong>Zone Editor<\/strong> in cPanel.<\/li>\n\n\n\n<li>Look for an <strong>A record<\/strong> (or <strong>CNAME record<\/strong>, depending on your setup) for the subdomain. Ensure it points to the correct IP address of your server.<\/li>\n\n\n\n<li>If no record exists, add an <strong>A record<\/strong> with the subdomain pointing to your server&#8217;s IP address.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-allow-dns-propagation\">3. <strong>Allow DNS Propagation<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DNS changes can take time to propagate. If you&#8217;ve recently added or modified the DNS record, it might take up to 48 hours to fully propagate worldwide.<\/li>\n\n\n\n<li>You can use tools like What&#8217;s My DNS to check the DNS propagation status.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-check-htaccess-configuration\">4. <strong>Check .htaccess Configuration<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you&#8217;re using an <code>.htaccess<\/code> file in the subdomain&#8217;s root directory, ensure that there are no rules that might block access to the subdomain.<\/li>\n\n\n\n<li>Common issues might include incorrect redirect rules or permission settings.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"5-verify-the-web-server-configuration\">5. <strong>Verify the Web Server Configuration<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you have root access to the server, ensure that the web server (e.g., Apache, Nginx) is configured to handle the subdomain correctly.<\/li>\n\n\n\n<li>Check the server&#8217;s configuration files (e.g., <code>httpd.conf<\/code> or <code>nginx.conf<\/code>) to make sure the subdomain is correctly set up.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"6-check-file-permissions\">6. <strong>Check File Permissions<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ensure that the files in the subdomain&#8217;s document root have the correct permissions.<\/li>\n\n\n\n<li>Files typically should have <code>644<\/code> permissions, and directories should have <code>755<\/code> permissions.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"7-clear-browser-cache\">7. <strong>Clear Browser Cache<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Sometimes, the issue might be local. Clear your browser&#8217;s cache and cookies or try accessing the subdomain from an incognito\/private window.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"8-test-with-a-different-network\">8. <strong>Test with a Different Network<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The issue could be due to local DNS caching. Try accessing the subdomain from a different network (e.g., mobile data) to see if it\u2019s working.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"9-check-firewall-settings\">9. <strong>Check Firewall Settings<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If your server has a firewall, ensure that it\u2019s not blocking access to the subdomain.<\/li>\n\n\n\n<li>You may need to check with your hosting provider if you&#8217;re unsure about the firewall configuration.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"10-contact-support\">10. <strong>Contact Support<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you&#8217;ve tried the above steps and the subdomain is still not working, consider contacting your <a href=\"https:\/\/www.salemwebhosting.in\/\">hosting provider\u2019s<\/a> support for further assistance.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>What is Subdomain A subdomain is a domain that is part of a larger main domain (or parent domain). It is used to organize and navigate to different sections of a website, often representing different areas or functions. Subdomains are created by adding a prefix to the main domain name, separated by a dot. Example&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"class_list":["post-604","post","type-post","status-publish","format-standard","hentry","category-what-is-subdomain"],"_links":{"self":[{"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/posts\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/comments?post=604"}],"version-history":[{"count":5,"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/posts\/604\/revisions\/611"}],"wp:attachment":[{"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/media?parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/categories?post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.salemwebhosting.in\/articles\/wp-json\/wp\/v2\/tags?post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}