An XML sitemap is a file that lists all the important pages on your website, helping search engines like Google discover and crawl your content efficiently. Think of it as a roadmap of your site — it tells search engine bots exactly where to find your pages, when they were last updated, and how important they are relative to each other. For Tanzanian businesses looking to maximize their search visibility, a properly configured sitemap is essential.

Who Needs a Sitemap? Every website benefits from a sitemap, but they are especially critical for new websites that lack external backlinks, large sites with hundreds of pages, sites with complex navigation where pages might be orphaned, and e-commerce stores with frequently changing product pages.

Understanding XML Sitemap Structure

An XML sitemap follows a specific format defined by the Sitemaps Protocol. Here is the basic structure:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://yourbusiness.co.tz/</loc>
    <lastmod>2026-03-01</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <url>
    <loc>https://yourbusiness.co.tz/services/</loc>
    <lastmod>2026-02-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
</urlset>

Sitemap Elements Explained

  • <loc> (Required): The full URL of the page. Must include the protocol (https://).
  • <lastmod> (Recommended): The date the page was last modified in YYYY-MM-DD format.
  • <changefreq> (Optional): How frequently the page changes — always, hourly, daily, weekly, monthly, yearly, never. Google largely ignores this but it does not hurt to include it.
  • <priority> (Optional): A value from 0.0 to 1.0 indicating the page's importance relative to other pages on your site. Your homepage is typically 1.0.

Creating Your Sitemap

Method 1: CMS Auto-Generation (Easiest)

Most modern content management systems generate sitemaps automatically:

WordPress: Install Yoast SEO or Rank Math plugin. Both automatically generate and maintain your sitemap. Access it at yourdomain.co.tz/sitemap_index.xml.
Joomla: Use the OSMap extension to generate sitemaps. After installation, configure which menu items and categories to include.
Custom Sites: If you have a custom-built website hosted on SakuraHost, you can use online generators or create the file manually.

Method 2: Online Generators

Free tools like XML-Sitemaps.com can crawl your site and generate a sitemap file. Simply enter your domain, configure the settings, and download the generated file. This works well for smaller sites with fewer than 500 pages.

Method 3: Manual Creation

For small, static websites, you can create the XML file manually using any text editor. Follow the structure shown above and list every page you want indexed.

Sitemap Limits: A single sitemap file can contain a maximum of 50,000 URLs and must not exceed 50MB in size. If your site exceeds these limits, use a sitemap index file that references multiple sitemap files.

Sitemap Index Files for Large Sites

If your website has many pages, create a sitemap index that references multiple individual sitemaps:

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://yourbusiness.co.tz/sitemap-pages.xml</loc>
    <lastmod>2026-03-01</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://yourbusiness.co.tz/sitemap-products.xml</loc>
    <lastmod>2026-03-05</lastmod>
  </sitemap>
</sitemapindex>

Uploading Your Sitemap

Upload the sitemap XML file to your website's root directory (public_html or www). The final URL should be https://yourdomain.co.tz/sitemap.xml. Use File Manager in your hosting control panel or FTP.

Submitting to Google Search Console

Log into Google Search Console. Select your property, navigate to "Sitemaps" in the left menu, enter your sitemap URL, and click "Submit."

Google will process your sitemap and report the number of URLs discovered, any errors found, and the indexing status over the following days.

Submitting to Bing via Webmaster Tools

Do not forget about Bing. While Google dominates search in Tanzania, Bing still drives traffic, and submitting your sitemap is quick:

Go to Bing Webmaster Tools, add your site, verify ownership, and submit your sitemap URL under the "Sitemaps" section.

Adding Sitemap Reference to Robots.txt

As a best practice, reference your sitemap in your robots.txt file. This ensures any search engine crawling your site can find it:

User-agent: *
Allow: /

Sitemap: https://yourbusiness.co.tz/sitemap.xml

Sitemap Best Practices

  • Only include canonical URLs: Do not include duplicate pages, paginated archives, or URLs that redirect.
  • Keep it updated: Use accurate <lastmod> dates. Do not set all dates to today's date — this reduces Google's trust in your lastmod data.
  • Match your sitemap to robots.txt: Do not include URLs in your sitemap that are blocked by robots.txt.
  • Use HTTPS URLs: All URLs in your sitemap should use HTTPS if your site has an SSL certificate.
  • Include only indexable pages: Exclude pages with noindex meta tags, login pages, admin areas, and thin content pages.
Pro Tip: After submitting your sitemap, check back in Google Search Console after a week. Look at the "Coverage" report to see how many of your submitted URLs were actually indexed. A large gap between submitted and indexed URLs indicates content quality or technical issues that need attention.
SakuraHost Support: If you need help creating or configuring your sitemap, our support team is available through billing.sakurahost.co.tz. Stay informed about your website's status with SMS notifications from sms.sakuragroup.co.tz.
Was this answer helpful? 0 Users Found This Useful (0 Votes)