{
  "id": "05",
  "content": [
    {
      "type": "heading",
      "text": "Root Domain, www and Canonical Hosting"
    },
    {
      "type": "text",
      "html": "Many sites use both the root domain and <code>www</code>. One should be the canonical version, and the other should redirect cleanly to it."
    },
    {
      "type": "text",
      "html": "Canonical consistency helps visitors, analytics, cookies, redirects, SEO signals, and certificate management. Split versions can create duplicate URLs and messy reporting."
    },
    {
      "type": "callout",
      "style": "info",
      "html": "<strong>Practice:</strong> Decide whether the primary address is <code>example.com</code> or <code>www.example.com</code>, then configure DNS, hosting, HTTPS, and redirects to match."
    }
  ],
  "quiz": {
    "questions": [
      {
        "id": "q1",
        "type": "single",
        "text": "Why choose a canonical version?",
        "options": [
          {
            "id": "a",
            "text": "To avoid duplicate URLs and messy signals"
          },
          {
            "id": "b",
            "text": "To make all pages private"
          },
          {
            "id": "c",
            "text": "To stop DNS from working"
          }
        ],
        "correct": [
          "a"
        ]
      },
      {
        "id": "q2",
        "type": "single",
        "text": "What should redirect to the canonical host?",
        "options": [
          {
            "id": "a",
            "text": "The non-primary root or www version"
          },
          {
            "id": "b",
            "text": "Every image to a password page"
          },
          {
            "id": "c",
            "text": "The browser settings menu"
          }
        ],
        "correct": [
          "a"
        ]
      }
    ]
  }
}
