{"id":10894,"date":"2026-06-09T18:45:02","date_gmt":"2026-06-09T18:45:02","guid":{"rendered":"https:\/\/kelma.io\/knowledge-base\/adding-a-domain-and-setting-the-primary-domain\/"},"modified":"2026-06-09T19:43:37","modified_gmt":"2026-06-09T19:43:37","slug":"adding-a-domain-and-setting-the-primary-domain","status":"publish","type":"post","link":"https:\/\/kelma.io\/ar\/knowledge-base\/adding-a-domain-and-setting-the-primary-domain\/","title":{"rendered":"\u0625\u0636\u0627\u0641\u0629 \u0646\u0637\u0627\u0642 \u0648\u062a\u0639\u064a\u064a\u0646 \u0627\u0644\u0646\u0637\u0627\u0642 \u0627\u0644\u0623\u0633\u0627\u0633\u064a"},"content":{"rendered":"<p class=\"wp-block-paragraph\">A single Kelma site can answer to several domains \u2014 your main address, a <code>www<\/code> alias, or extra brand domains that should all land on the same site. This guide explains how to add a domain, complete validation, and set which one is primary so links, emails, and SEO all point to the right place.<\/p>\n\n<h2 class=\"wp-block-heading\">Add a domain<\/h2>\n<p class=\"wp-block-paragraph\">Open your site is <strong>Domains<\/strong> tab and add the domain you want to attach. Kelma immediately shows a <strong>Pending Validation<\/strong> section listing the exact DNS records to add at your provider:<\/p>\n<ul class=\"wp-block-list\"><li>A <strong>CNAME<\/strong> (or A) record to route traffic to Kelma.<\/li><li>A <strong>TXT<\/strong> record, when required, to verify ownership so SSL can be issued.<\/li><\/ul>\n<p class=\"wp-block-paragraph\">Add those records at your registrar or DNS host exactly as shown. Once they propagate, the domain flips from <em>Pending<\/em> to <em>\u0646\u0634\u0637<\/em> automatically.<\/p>\n\n<div class=\"kb-callout note\"><strong>How long does DNS take?<\/strong> Usually a few minutes, sometimes up to a few hours depending on your provider is TTL. You do not need to keep refreshing \u2014 Kelma re-checks and activates the domain for you.<\/div>\n\n<h2 class=\"wp-block-heading\">Set the primary domain<\/h2>\n<p class=\"wp-block-paragraph\">The <strong>primary domain<\/strong> is the canonical address for your site \u2014 the one WordPress uses for its Site Address, the one visitors are redirected to, and the one search engines should index. To set it, open the Domains tab and mark the domain you want as <strong>Primary<\/strong>. All other attached domains will redirect to it.<\/p>\n\n<div class=\"kb-callout warn\"><strong>Match WordPress to your primary domain.<\/strong> If you change the primary domain, make sure the WordPress <em>Site Address (URL)<\/em> \u0648 <em>WordPress Address (URL)<\/em> in <em>Settings \u2192 General<\/em> match \u2014 otherwise you can get redirect loops or mixed-content warnings.<\/div>\n\n<h2 class=\"wp-block-heading\">www or non-www?<\/h2>\n<p class=\"wp-block-paragraph\">Pick one and stick with it. Add both <code>example.com<\/code> \u0648 <code>www.example.com<\/code>, set your preferred version as primary, and let the other redirect. Consistency matters for SEO and for avoiding duplicate-content confusion.<\/p>\n\n<h2 class=\"wp-block-heading\">SSL is automatic<\/h2>\n<p class=\"wp-block-paragraph\">As soon as a domain validates, Kelma requests a free SSL certificate for it and renews it automatically before expiry. You do not need to buy or install anything. If a certificate ever fails to issue, it is almost always because a DNS record is missing or still propagating \u2014 re-check the records on the Domains tab.<\/p>\n\n<h2 class=\"wp-block-heading\">Moving a live domain without downtime<\/h2>\n<p class=\"wp-block-paragraph\">Switching a domain that already serves a live site takes a little planning. Build and check the site on its temporary <code>.kelma.io<\/code> address first, so it is fully ready before any traffic moves. Lower the DNS TTL at your provider a day ahead, which makes the switch propagate faster. When you are ready, update the DNS records to point at Kelma \u2014 visitors are served from whichever host their DNS currently resolves to, so there is no hard cutover. Once the records propagate, set the domain as primary and confirm the padlock appears.<\/p>\n\n<h2 class=\"wp-block-heading\">\u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0634\u0627\u0626\u0639\u0629<\/h2>\n<h3 class=\"wp-block-heading\">Can one site have multiple domains?<\/h3>\n<p class=\"wp-block-paragraph\">Yes. Attach as many domains and aliases as you need, mark one as primary, and the rest redirect to it. This is how you handle <code>www<\/code>, alternate spellings, and extra brand domains for a single site.<\/p>\n<h3 class=\"wp-block-heading\">My domain still shows the old host \u2014 why?<\/h3>\n<p class=\"wp-block-paragraph\">DNS is still propagating, or an old record is cached. Confirm the records match what the Domains tab shows, then give it time \u2014 lowering your TTL beforehand makes future changes faster.<\/p>\n<h3 class=\"wp-block-heading\">Do I have to host my DNS at Kelma?<\/h3>\n<p class=\"wp-block-paragraph\">No. You can keep DNS wherever it is today and simply add the records we show you. Pointing the records at Kelma is all that is required.<\/p>\n\n<h2 class=\"wp-block-heading\">In short<\/h2>\n<p class=\"wp-block-paragraph\">One site can answer to many domains. Add each one on the Domains tab, complete the DNS validation Kelma shows you, and pick a single primary domain so every other address redirects to it cleanly. Keep your WordPress Site Address in sync with the primary, choose www or non-www and stick with it, and let SSL issue itself automatically. Done once, your domains stay tidy, canonical, and secure.<\/p>\n\n<h2 class=\"wp-block-heading\">Where to go next<\/h2><div class=\"kb-next\"><a href=\"https:\/\/kelma.io\/ar\/knowledge-base\/requesting-an-ssl-certificate\/\"><b>Request SSL<\/b><span>Secure every domain with free HTTPS.<\/span><\/a><a href=\"https:\/\/kelma.io\/ar\/knowledge-base\/creating-redirects\/\"><b>Create redirects<\/b><span>Send old URLs to new ones cleanly.<\/span><\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>Attach extra domains and aliases to your site, choose which one is primary, and complete DNS validation so SSL is issued.<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49,56],"tags":[],"class_list":["post-10894","post","type-post","status-publish","format-standard","hentry","category-knowledge-base","category-kelma-dashboard"],"_links":{"self":[{"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/posts\/10894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/comments?post=10894"}],"version-history":[{"count":3,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/posts\/10894\/revisions"}],"predecessor-version":[{"id":10916,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/posts\/10894\/revisions\/10916"}],"wp:attachment":[{"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/media?parent=10894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/categories?post=10894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kelma.io\/ar\/wp-json\/wp\/v2\/tags?post=10894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}