You can publish great content every week. Still, if Google can’t find your pages, nobody will read them. That’s where an XML sitemap comes in. It is a simple file that lists the pages you want search engines to discover.
In this guide, you’ll learn what an XML sitemap is and whether your business needs one. Then, we’ll show you how to create and submit it. We’ll also cover common mistakes and why sitemaps still matter for AI search. Let’s dive in.

What Is an XML Sitemap?
An XML sitemap is a file that lists the important URLs on your website. Search engines read it to discover pages and understand when they last changed. For example, ours lives at creativesite.com.my/sitemap_index.xml.
Think of it like a directory board at a shopping mall in Mid Valley. Shoppers can still wander and find stores on their own. However, the board helps them reach the right shop faster. Similarly, Google can crawl your links without a sitemap, but the file gives it a clear shortcut.
Keep one thing in mind, though. A sitemap is a hint, not a command. According to Google Search Central, submitting a sitemap doesn’t guarantee that Google will crawl or index every URL in it.
XML Sitemap vs HTML Sitemap
People often mix these two up. An HTML sitemap is a normal web page with links for human visitors. In contrast, an XML sitemap uses code that search engine bots read.
Most business websites only need the XML version. Meanwhile, an HTML sitemap can still help visitors on large sites with many categories.
Does Your Business Website Need an XML Sitemap?
Here’s the honest answer. Not every site strictly needs one. Google’s sitemap overview says a “small” site of about 500 pages or fewer may not need it. That’s true as long as your pages link to each other well.
On the other hand, Google says you probably need a sitemap if:
- The site is large, like an online store with hundreds of products.
- It’s new and has few external links pointing to it.
- You publish lots of video or image content, or appear in Google News.
In practice, we recommend one for every business site. It costs nothing, takes minutes to set up, and gives you useful data in Google Search Console. Plus, a new Malaysian SME website with zero backlinks benefits the most.
What Google Actually Reads in Your XML Sitemap
An XML sitemap can include several tags. Yet Google doesn’t treat them all equally. Knowing the difference saves you from wasting time on settings that do nothing.
The Tags That Matter
Every entry needs a loc tag, which holds the full page URL. Google asks for fully qualified, absolute URLs. So use https://yourdomain.com.my/services/ rather than just /services/.
Next comes lastmod, the date a page last changed. Google uses this value only when it is consistently and verifiably accurate. In other words, update it for real content changes, not for a new copyright year in the footer.
What about priority and changefreq? Google says it ignores both values. As a result, you can skip them without any worry.
Size Limits and Sitemap Index Files
A single sitemap can hold up to 50,000 URLs or 50MB uncompressed. If your site is bigger, split it into several files. Then, list those files in a sitemap index file.
Most WordPress SEO plugins do this for you automatically. For instance, Yoast creates separate sitemaps for posts, pages and categories, and then links them from one index.

How to Create an XML Sitemap in WordPress
Good news if your site runs on WordPress. You probably already have a sitemap, even if you never made one. Let’s look at your two main options.
Option 1: Use the Built-In WordPress Sitemap
Since version 5.5, WordPress has generated a basic sitemap on its own. You can usually find it at yourdomain.com/wp-sitemap.xml. It works, but it gives you limited control over what goes inside.
Option 2: Use Yoast SEO or Another SEO Plugin
Most businesses prefer an SEO plugin. With Yoast SEO, go to Yoast SEO > Settings > Site features. Then switch on the XML sitemaps toggle under Technical SEO.
Your new file will usually sit at yourdomain.com/sitemap_index.xml. After that, open it in your browser and check that your key pages appear. If you’re new to plugin settings, our WordPress SEO guide walks through the full setup.
Not on WordPress? No problem. Shopify, Wix and most modern platforms also generate sitemaps automatically. Alternatively, tools like Screaming Frog can build one for custom-coded sites.
How to Submit Your XML Sitemap to Google
Creating the file is only half the job. Next, you need to tell Google where it is. Follow these three simple steps.
Step 1: Submit It in Google Search Console
Log in to Google Search Console and open the Sitemaps report. Then, paste your sitemap URL and click Submit. If you haven’t verified your site yet, follow our Google Search Console setup guide first.
Step 2: Add It to Your Robots.txt File
Google also lets you list your sitemap in robots.txt. Simply add a line like this anywhere in the file: Sitemap: https://yourdomain.com.my/sitemap_index.xml. As a bonus, other search engines like Bing can find it this way too.
Want to learn more about this file? Read our robots.txt guide for Malaysian businesses.
Step 3: Monitor the Sitemaps Report
After you submit, Search Console shows the status of each sitemap. Look for “Success” and the number of discovered URLs. If you see “Couldn’t fetch” or errors, fix them quickly.
Also, don’t rely on the old ping trick. In June 2023, Google announced it was retiring the sitemap ping endpoint. Today, Search Console, robots.txt and accurate lastmod dates are the way to go.
How to Check Your XML Sitemap in 5 Minutes
You don’t need to be a developer to run a quick health check. Grab a coffee and follow along.
First, open your sitemap URL in a browser. You should see a clean list of links, not an error page. Next, click a few URLs at random and make sure each one loads properly.
After that, compare the list with your most important pages. Are your service pages, location pages and best blog posts all there? If a money page is missing, Google may find it more slowly.
Then, head back to the Sitemaps report in Search Console. Check the number of discovered URLs against what you expect. For example, a site with 40 pages that shows 400 URLs probably has junk pages inside.
Finally, use the URL Inspection tool on one or two key pages. It tells you whether Google has crawled and indexed them. This five-minute routine often reveals problems before they hurt your traffic.

7 Common XML Sitemap Mistakes to Avoid
We audit many Malaysian websites every month. These are the mistakes we see most often.
1. Including noindex pages. If a page has a noindex tag, it shouldn’t appear in your sitemap. Otherwise, you send Google mixed signals.
2. Listing redirected or broken URLs. Only include pages that return a 200 status code. Old URLs that redirect or show a 404 error waste crawl time.
3. Adding duplicate pages. Include only the canonical version of each page. For example, skip URLs with tracking parameters or filter options.
4. Faking lastmod dates. Some plugins update every date daily. Unfortunately, this trains Google to ignore your lastmod values.
5. Blocking the sitemap in robots.txt. It sounds silly, but it happens after site migrations. So always test that Google can fetch the file.
6. Forgetting about staging URLs. Developers sometimes leave test or staging links inside. Check for any domain that isn’t your live site.
7. Never checking it again. A sitemap isn’t a one-time task. Review it every few months, especially after a redesign. If key pages still don’t show up in Google, our guide on why pages are not indexed can help.
Why XML Sitemaps Still Matter for AI Search
AI answers are changing how Malaysians search. Tools like Google AI Overviews, ChatGPT and Microsoft Copilot all depend on fresh, crawlable content. Before an AI system can cite your page, a crawler has to find it.
Bing made this point clearly. In July 2025, the Bing Webmaster team published a post on keeping content discoverable with sitemaps in AI-powered search. In short, it urged site owners to keep sitemaps complete and lastmod dates accurate.
So think of your sitemap as part of your AEO and GEO foundation. It won’t win AI citations by itself. Still, it helps search engines discover your best content in the first place.
Conclusion: Make Your XML Sitemap Work for You
An XML sitemap is one of the easiest technical SEO wins you can get. First, create it with WordPress or an SEO plugin. Next, submit it in Search Console and add it to robots.txt. Finally, keep it clean, accurate and up to date.
Small fixes like this add up. Together with strong content and good internal links, they help Google and AI tools find your most valuable pages.
Not sure if your sitemap is set up correctly? Get a free SEO audit from Creative Site. We’ll check your sitemap, indexing and technical setup, then show you what to fix first. You can also see real results in our SEO case studies, or explore our SEO services in Malaysia.
Frequently Asked Questions
What is an XML sitemap in simple terms?
It’s a file that lists the important pages on your website. Search engines use it to discover your pages faster and see when they last changed.
Does an XML sitemap improve Google rankings?
Not directly. A sitemap helps Google discover and crawl your pages. However, rankings still depend on content quality, relevance and links.
Where can I find my WordPress sitemap?
Try yourdomain.com/sitemap_index.xml if you use Yoast SEO. Otherwise, the default WordPress sitemap usually sits at yourdomain.com/wp-sitemap.xml.
How often should I update my sitemap?
Ideally, it should update automatically whenever you publish or change a page. SEO plugins handle this for you. Just review it manually every few months.
How many URLs can one sitemap contain?
Google allows up to 50,000 URLs or 50MB uncompressed per sitemap. For bigger sites, split it into several files and use a sitemap index.





[…] methods to make your signal stronger. For example, list only canonical URLs in your sitemap. Our XML sitemap guide shows you how to keep it […]