Skip to content
Bdazzil Marketing

Blog SEO

The Importance of XML Sitemaps & How to Optimize Them

XML sitemap optimization helps Google find and refresh your key pages. Learn what to include, what to leave out, and how to submit and monitor your sitemap.

7 minute read

XML sitemap optimization is a quiet piece of search work with a clear payoff: it helps Google find your important pages and notice when they change. For a new service page, a fresh product range or a bilingual site with hundreds of URLs, a clean sitemap shortens the gap between publishing and appearing in search. It is a standard part of the SEO work we carry out for clients across the UAE.

A sitemap does not replace good site structure or internal links, but it supports both. Below we cover why sitemaps matter, what a well-built one contains, and how to keep it accurate as your site grows, as part of a sound technical SEO setup.

Why XML sitemaps still matter

An XML sitemap is a file that lists the URLs you want search engines to know about, often with the date each page last changed. Search engines discover most pages by following links, so a small, well-linked site can be crawled perfectly well without one. Sitemaps become valuable in specific situations.

  • Large sites, such as stores with thousands of products, where some pages sit deep in the structure.
  • New sites with few external links pointing to them yet.
  • Sites that publish often, such as news sections, property listings or event pages.
  • Sites with rich media, where image and video information helps search engines understand the content.
  • Multilingual sites, where a sitemap can carry hreflang annotations for English and Arabic versions.

A sitemap is a hint, not a command. Google decides what to crawl and index on its own judgment, but an accurate sitemap gives it a reliable list to start from.

What a well-built sitemap contains

The single most important rule is that a sitemap should list only the pages you want to rank. Every URL in it should be a live, indexable, canonical page that returns a 200 status code.

IncludeLeave out
Service, product and category pagesRedirected URLs
Published articles and guidesPages marked noindex
Location and landing pagesDuplicate or parameter URLs
Canonical versions of each pageThank-you and account pages
Both language versions on bilingual sitesPages blocked by robots.txt

When a sitemap is full of redirects, errors and noindexed pages, search engines learn that the file is unreliable. Clean sitemaps are taken more seriously.

Which tags Google pays attention to

A sitemap entry can include loc, lastmod, changefreq and priority. Google uses loc, the page URL, and lastmod when it is consistently accurate. It has said it ignores changefreq and priority, so there is no benefit in fine-tuning them. Lastmod should change only when the main content of the page changes, not every time a footer or sidebar updates. Sites that stamp every page with today’s date teach Google to distrust the field.

Sitemap limits and structure

A single sitemap file can hold up to 50,000 URLs and must be no larger than 50 MB uncompressed. Larger sites split their URLs across several files and list those files in a sitemap index. Most WordPress SEO plugins do this automatically, creating separate sitemaps for pages, posts, products and categories.

Splitting by content type has a practical benefit beyond the limits. In Search Console you can see indexing data for each submitted sitemap, so separate files for services, products and articles show you quickly which section has indexing problems.

Specialist sitemaps

  • Image sitemaps add image locations to page entries, which helps for galleries and product photography.
  • Video sitemaps describe videos hosted on your pages, including title, description and thumbnail.
  • News sitemaps apply to publishers in Google News and list recent articles only.
  • Hreflang in sitemaps lets you declare language alternates in one place instead of in every page head.

A step-by-step plan for XML sitemap optimization

Whether you are starting fresh or tidying an older site, this sequence covers the essentials of XML sitemap optimization.

  1. Find your current sitemap. Check yourdomain.com/sitemap.xml, yourdomain.com/sitemap_index.xml, or the Sitemap line in your robots.txt file.
  2. Crawl the URLs in it with a tool such as Screaming Frog and note any that redirect, return errors, or carry noindex or a canonical pointing elsewhere.
  3. Fix the source, not just the file. If a plugin adds tag archives or media attachment pages you do not want indexed, change the plugin settings so they drop out automatically.
  4. Check coverage the other way round. Compare a full crawl of your site with the sitemap to find valuable pages that are missing.
  5. Confirm lastmod is honest and changes only with real content updates.
  6. Reference the sitemap in robots.txt using its full URL.
  7. Submit it in Search Console and in Bing Webmaster Tools.
  8. Review monthly, and after any migration, redesign or large product upload.

Submitting and monitoring your sitemap

Submitting a sitemap in Google Search Console takes a minute: open the Sitemaps report, enter the URL and submit. Google retired its old sitemap ping endpoint in 2023, so submission in Search Console and the robots.txt reference are now the standard routes, with lastmod signaling updates.

After submission, the report shows when Google last read the file and how many URLs it discovered. The Pages report can be filtered by sitemap, which is where the real insight sits. If a large share of the URLs in your product sitemap shows as “Crawled, currently not indexed”, that points to a content quality or duplication issue rather than a sitemap fault.

What you seeLikely causeNext step
Couldn’t fetchWrong URL, server error or blockingOpen the file in a browser and check robots.txt
Submitted URL not foundDeleted pages still listedRegenerate the sitemap from the CMS
Discovered, not indexedGoogle has not crawled them yetStrengthen internal links to those pages
Crawled, not indexedThin or duplicate contentImprove or consolidate the pages

Sitemaps for bilingual and growing UAE sites

Many businesses here run English and Arabic versions of the same site. Each language version should be listed, and each should point to its counterpart through hreflang, either in the page head or in the sitemap. Sitemaps are often the tidier option for large bilingual sites because the annotations sit in one file rather than across thousands of templates.

Arabic URLs need attention too. If your slugs use Arabic characters, the sitemap must list them in their encoded form so the file stays valid. Many teams choose transliterated or English slugs for Arabic pages to keep URLs short and easy to share on WhatsApp, which also avoids encoding problems.

Growth brings its own risk. When a store adds a seasonal collection or a property portal adds new listings, the sitemap should update automatically. When pages expire, they should drop out promptly rather than lingering as errors.

Frequently asked questions

Does an XML sitemap guarantee my pages will be indexed?

No. A sitemap helps search engines discover URLs and understand when they change, but indexing still depends on page quality, duplication and how the page fits the rest of your site. Treat the sitemap as a list of recommendations. If submitted pages are not being indexed, look at the content and internal links behind them.

How often should my sitemap update?

It should update whenever you publish, remove or substantially change a page. Most content management systems and SEO plugins regenerate sitemaps automatically, so the main task is checking that the output stays clean. Review the file monthly and after any major site change, such as a migration, redesign or large product import.

Do I need a separate HTML sitemap as well?

An HTML sitemap is a page for people, not a file for search engines. It can help visitors on large sites and adds internal links to deeper pages, but it is optional. Most sites benefit more from clear navigation and good internal linking than from a long page of links.

Should images and PDFs go in my sitemap?

Images can be added to page entries through image sitemap tags, which helps when product or portfolio images matter for search. PDFs can be listed if you want them found, such as brochures or menus, but make sure the same information also exists on an HTML page, which is usually a better landing experience.

A clearer map for search engines

XML sitemap optimization is about accuracy. A sitemap that lists only your best, live, canonical pages, with honest update dates, helps search engines spend their time well and gives you a clear view of indexing in Search Console. Paired with sound internal linking and a careful robots.txt file, it keeps new pages moving into search quickly.

If you would like us to review your sitemap setup or the indexing data behind it, the Bdazzil team would be glad to talk it through with you.

Keep reading

SEO

How to Use AI & Automation in SEO Reporting

AI SEO reporting promises to remove the most tedious part of search marketing: pulling numbers from several tools every month, pasting them into slides and writing the same comment...

SEO

Common SEO Reporting Mistakes & How to Avoid Them

Most SEO reporting mistakes are not about bad data. They come from reporting the wrong things, in the wrong order, without enough context for the reader to understand what changed...

Free Growth Audit

Tell us about your project

A few details and we'll reply within one business hour, with a 30-minute call and a written plan to follow.

Sunday to Thursday, 9am to 6pm UAE time. Replies within one business hour.