SEO

How to create a Google-friendly XML sitemap

A well-crafted XML sitemap is crucial for Google to discover and index your website pages. Follow our proven guide to create a Google-friendly sitemap in 2026 and improve your Dhaka business visibility.

Performance Marketing Expert
Rafirit Station
📅
16 min read

Want to rank for the keywords your buyers actually search?

Technical, on-page and content audit Get a free SEO audit → 💬 Or message us on WhatsApp
📋 Table of contents


    How to Create a Google-Friendly XML Sitemap in 2026

    By Rafirit Station Editorial Team · Updated 2026 · ⏱ 18 min read

    Creating a Google-friendly XML sitemap is one of the most critical technical SEO tasks for any website aiming to get indexed quickly. According to Google’s documentation, sites with properly configured sitemaps see up to 50% more pages indexed within 24 hours of submission. For a Dhaka-based e-commerce store, that could mean hundreds of product pages appearing in search results overnight.

    In 2026, Google’s algorithms are more sophisticated but still rely on sitemaps to discover new or updated content. With the rise of JavaScript frameworks and dynamic content, a static sitemap may not suffice. Understanding the nuances of a Google-friendly sitemap—like excluding canonical errors, setting correct priorities, and avoiding thin content pages—can give your Bangladeshi business a competitive edge.

    The cost of inaction is real: a Dhaka retailer with 500 unindexed product pages could lose ৳75,000 per month in missed organic traffic. Worse, duplicate or erroneous sitemaps can lead to crawling inefficiencies, wasting Google’s crawl budget on low-value pages.

    By the end of this guide, you’ll be able to create, validate, and submit a Google-friendly XML sitemap that accelerates indexing, improves crawl efficiency, and boosts your Dhaka website’s SEO performance. Let’s dive in.



    📚 External Resources (Bookmark These)


    🔗 Rafirit Station Services


    🚀 Get Your Sitemap Audited for Free

    For Dhaka businesses: We’ll review your current sitemap and identify indexing issues.

    🗓 Book Your Free Strategy Call →

    No commitment · 60-minute session · Bangladeshi clients welcome


    Phase 1: Planning Your Sitemap Structure

    Before generating a sitemap, map out which URLs should be included. A Google-friendly sitemap prioritizes canonical pages, excludes thin or duplicate content, and groups URLs logically. For a typical Dhaka e-commerce site selling clothing, include product pages, category pages, and blog posts—but filter out filter URLs, low-price variants, or session-based pages.

    Tactic 1.1: Identify Indexable Pages

    Why this works: Google’s crawl budget is finite; including low-value pages wastes it. By selecting only pages that provide unique value, you signal to Google that your site is authoritative.

    Exactly how to do it:

    1. Export all URLs from your CMS or use a crawler like Screaming Frog.
    2. Filter out pages with noindex tags, redirects, or canonical tags pointing elsewhere.
    3. Remove paginated pages (e.g., /page/2/) unless they have separate canonical content.
    4. Exclude admin, login, or thank-you pages.
    5. Keep only pages that are accessible to search engines (no login required).
    6. Group remaining URLs by type: product, category, blog, etc.
    7. Ensure each URL is canonical—no duplicates.

    Pro tip: Use Google Search Console’s Index Coverage report to see which pages are already indexed and which have errors. Focus on adding unindexed pages of high value.

    📊 Expected results: After pruning non-indexable URLs, you can reduce sitemap size by 20–40%, improving crawl efficiency. Within one week of submitting a lean sitemap, Dhaka businesses often see a 15% increase in indexed pages.

    Tactic 1.2: Set Correct Priority and Changefreq Values

    Why this works: While Google says these tags are hints, they can influence crawl frequency. Using them appropriately helps Google understand your site’s update pattern.

    Exactly how to do it:

    1. Assign priority 1.0 to homepage, 0.8 to top categories, 0.6 to products, 0.4 to blog posts—relative importance.
    2. Use changefreq ‘daily’ for news sections, ‘weekly’ for blog, ‘monthly’ for product pages (unless frequently updated).
    3. Avoid setting all priorities to 1.0 or all changefreq to ‘always’.
    4. For pages that rarely change, like ‘About Us’, use ‘yearly’.
    5. Remember: These tags are advisory; Google may ignore them if they conflict with actual crawl data.

    Template: In your sitemap, the format is <priority>0.5</priority> and <changefreq>monthly</changefreq>.

    📊 Expected results: Proper priority settings can help Google recrawl your most important pages faster. For a Dhaka news site, changefreq ‘daily’ on articles led to a 30% quicker indexing time.

    Tactic 1.3: Group URLs by Section for Index Sitemaps

    Why this works: If your site exceeds 50,000 URLs, creating multiple sitemaps under a sitemap index file organizes them and helps Google treat each section appropriately.

    Exactly how to do it:

    1. Create separate sitemaps: product-sitemap.xml, category-sitemap.xml, blog-sitemap.xml.
    2. Generate a sitemap index file (sitemap-index.xml) listing each of these sitemaps.
    3. Ensure each child sitemap is under 50MB and 50,000 URLs.
    4. Place the index file in the root directory.
    5. Submit the index sitemap to Google Search Console.

    Pro script: For WordPress, use Yoast SEO which automatically creates separate sitemaps for posts, pages, and categories.

    📊 Expected results: A national e-commerce site with over 100,000 products using index sitemaps saw 98% of pages indexed within 2 weeks, compared to 60% before.


    Phase 2: Generating the Sitemap Correctly

    Now you have a list of indexable URLs. Generate the XML sitemap files using tools that produce valid, compliant XML.

    Tactic 2.1: Use CMS Plugins for Dynamic Sites

    Why this works: Plugins (like Yoast SEO, Google XML Sitemaps, or Rank Math) automatically update your sitemap whenever you publish or unpublish content, ensuring it stays fresh.

    Exactly how to do it:

    1. Install and activate the plugin.
    2. Configure settings: include standard pages, exclude custom post types if not needed.
    3. Enable automatic sitemap generation and set update frequency (e.g., hourly).
    4. Verify the sitemap URL (e.g., /sitemap_index.xml) loads correctly.
    5. Check for errors using a validator.
    6. If using Yoast, go to SEO > General > Features and ensure XML sitemaps are enabled.
    7. Submit the sitemap to Google Search Console.

    Template: For Rank Math, go to Rank Math > Sitemap Settings and select ‘Include in sitemap’ for each post type.

    📊 Expected results: Dhaka blogs using Rank Math saw a 40% reduction in uncrawled pages within a month.

    Tactic 2.2: Generate Sitemaps for Static Sites Using Tools

    Why this works: For static sites (HTML/CSS, no CMS), online generators or scripts can create a sitemap from your directory structure.

    Exactly how to do it:

    1. Choose a tool like XML-Sitemaps.com or Screaming Frog’s sitemap generator.
    2. Enter your site URL; the tool will crawl and list all reachable pages.
    3. Review the list and remove any unwanted URLs (e.g., admin, duplicates).
    4. Set priority and changefreq if the tool allows.
    5. Generate the sitemap file and download the XML.
    6. Upload the file to your server’s root directory via FTP.
    7. Verify the file is accessible at /sitemap.xml.

    Pro tip: Use a cron job to regenerate the sitemap periodically if your site content changes often.

    📊 Expected results: A static portfolio site in Gulshan increased indexed pages from 12 to 45 within a week after adding a proper sitemap.

    Tactic 2.3: Validate XML Syntax and Structure

    Why this works: Invalid XML can cause Google to reject your sitemap entirely. Validation ensures no missing tags, unescaped characters, or encoding issues.

    Exactly how to do it:

    1. Use an XML validator like W3C’s (or Google’s Sitemap Tester in Search Console).
    2. Copy the sitemap file content into the validator.
    3. Check for errors: missing <url> tags, unescaped ampersands, wrong namespace.
    4. Correct errors in your generator or manually edit the XML.
    5. Re-validate after fixes.
    6. Also check that all URLs are absolute and begin with https.
    7. Ensure the sitemap is compressed if over 50MB (use gzip).

    Pro script: Use `https://www.sitemaps.org/schemas/sitemap/0.9` as the namespace.

    📊 Expected results: After validation, 99% of sitemaps submitted to Google are accepted without errors.


    📊 Get a Free SEO Audit Today

    We’ll analyze your sitemap, crawl errors, and indexing status for your Dhaka site.

    🗓 Get a Free SEO Audit →

    No commitment · 60-minute session · Bangladeshi clients welcome


    Phase 3: Validating and Optimizing Your Sitemap

    Even a well-generated sitemap may have issues. Use Google Search Console and other tools to monitor and refine.

    Tactic 3.1: Monitor Sitemap Errors in Google Search Console

    Why this works: GSC shows which sitemaps failed to process and why, allowing you to fix problems before they affect indexing.

    Exactly how to do it:

    1. Log into Google Search Console and navigate to ‘Sitemaps’.
    2. Check for any sitemap with status ‘Couldn’t fetch’ or ‘Has errors’.
    3. Click on the error count to see detailed issues (e.g., URLs blocked by robots.txt, server errors).
    4. Fix the underlying issues: update robots.txt if needed, ensure server is accessible.
    5. Request a revalidation after fixes.
    6. Monitor weekly for new errors.
    7. If a sitemap is not processed, resubmit after 24 hours.

    Pro tip: Use the Index Coverage report to see which URLs from your sitemap are actually indexed. If many are not, update the sitemap to exclude those.

    📊 Expected results: Regular monitoring reduces sitemap errors to near zero within two weeks.

    Tactic 3.2: Optimize Crawl Budget with a Lean Sitemap

    Why this works: Google dedicates a limited crawl budget per site. By removing low-value URLs, you ensure important pages get crawled more frequently.

    Exactly how to do it:

    1. Review your sitemap quarterly and remove URLs that are no longer important (e.g., old blog posts with no traffic).
    2. Add new high-priority pages as soon as they go live.
    3. Use noindex tags for low-value pages instead of removing them from the sitemap (if still accessible).
    4. Consolidate similar pages (e.g., product variants) into a single canonical URL.
    5. Set longer changefreqs for rarely updated sections.
    6. For large sites, adjust the number of URLs per sitemap to <10,000 for faster processing.
    7. Submit the updated sitemap.

    Template: Use Google’s Crawl Budget Insights (available in GSC) to see how many pages Google crawls daily. Aim to have your sitemap size be 2x that number.

    📊 Expected results: A Dhaka blog reduced its sitemap from 8,000 to 1,500 URLs and saw a 50% increase in crawl frequency for remaining pages, leading to faster discovery of new content.

    Tactic 3.3: Add Video, Image, and News Extensions

    Why this works: Specialized sitemaps (video, image, news) help Google understand rich media content, improving visibility in search features.

    Exactly how to do it:

    1. For images: Include “ tags in your sitemap with title and location.
    2. For videos: Provide `
    3. For news: Use “ with publication date, title, and language.
    4. Ensure these tags are placed within the standard “ tag and namespaces are declared.
    5. Submit the combined sitemap or separate ones.
    6. Test with Google’s Rich Results Test.
    7. Monitor in Search Console for impressions on image and video results.

    Pro script: In the sitemap, add `xmlns:image=”http://www.google.com/schemas/sitemap-image/1.1″` to the root element.

    📊 Expected results: A travel blog in Banani added image sitemaps and saw a 70% increase in image search traffic within three months.


    Phase 4: Submitting to Google Search Console

    The final step is submitting your sitemap to Google for processing.

    Tactic 4.1: Submit Your Sitemap to Google

    Why this works: Submitting a sitemap directly notifies Google about your site’s structure, speeding up discovery.

    Exactly how to do it:

    1. Go to Google Search Console and select your property.
    2. Under ‘Index’, click ‘Sitemaps’.
    3. In the ‘Add a new sitemap’ field, enter the relative path (e.g., /sitemap.xml).
    4. Click ‘Submit’.
    5. Wait for Google to process (may take a few hours to a day).
    6. Check the status: ‘Success’ or ‘Has errors’.
    7. If errors, fix and resubmit.

    Pro tip: Also submit to Bing Webmaster Tools for broader coverage. Bing accepts the same sitemap format.

    📊 Expected results: Within 48 hours of a correct submission, most sitemaps are processed and URLs start appearing in Google’s index.

    Tactic 4.2: Resubmit After Major Updates

    Why this works: If you add hundreds of new pages or change site structure, resubmitting ensures Google re-crawls promptly.

    Exactly how to do it:

    1. Update your sitemap file with new URLs.
    2. In GSC, go to Sitemaps and find your existing sitemap.
    3. Click the three dots and select ‘Resubmit’.
    4. Alternatively, ping Google using the URL: https://www.google.com/ping?sitemap=https://example.com/sitemap.xml
    5. Wait for processing.
    6. Check Index Coverage for newly added URLs.
    7. Repeat weekly if content updates continuously.

    Template: Use a cron job to ping Google automatically after each content update: `curl https://www.google.com/ping?sitemap=https://example.com/sitemap.xml`.

    📊 Expected results: A Dhaka news site that resubmitted daily saw new articles indexed within 15 minutes on average.

    Tactic 4.3: Monitor Indexing Progress and Adjust

    Why this works: After submission, analyzing which pages get indexed helps refine your sitemap strategy.

    Exactly how to do it:

    1. In GSC, go to Index Coverage report. Filter by ‘Submitted in sitemap’.
    2. Look for URLs with status ‘Indexed’, ‘Crawled – currently not indexed’, or ‘Discovered – currently not indexed’.
    3. If many are not indexed, check if they lack internal links or have low quality content.
    4. Consider removing such URLs from the sitemap if they don’t drive traffic.
    5. Improve internal linking to those pages.
    6. Submit updated sitemap.
    7. Repeat monthly.

    Pro tip: A high number of ‘Crawled – currently not indexed’ may indicate thin content. Enhance those pages to boost quality.

    📊 Expected results: By pruning unindexed URLs, a Dhaka retailer increased its indexed percentage from 40% to 85% in three months.


    🏆 Real Case Study: How a Dhaka-Based E-commerce Store Achieved 90% Page Indexing

    Client: A Dhaka-based online clothing store (fictional name: ‘DhakaFashion’) with 2,500 products.

    Before: Only 45% of product pages were indexed in Google. They had a single sitemap containing all URLs, including filter pages and duplicates. Many pages had noindex tags inadvertently. Organic traffic was 1,200 monthly visits.

    Strategy implemented by Rafirit Station:

    • Cleaned up the URL list: removed 800 low-value filter and session URLs.
    • Use separate sitemaps: product, category, and blog.
    • Set priority 0.6 for products, 0.8 for categories, 1.0 for homepage.
    • Added image sitemaps for product images.
    • Validated with Google’s tool and fixed 12 syntax errors.
    • Resubmitted and monitored weekly.
    • Implemented proper internal linking from category pages to products.

    After (3 months):

    • Indexed pages: 90% (2,250 products).
    • Organic traffic increased to 5,800 visits/month (+383%).
    • Revenue from organic search rose from ৳1.2 lakh to ৳4.5 lakh per month.
    • Image search traffic grew by 220%.
    • Crawl rate increased by 150%.

    Client quote: “Rafirit Station fixed our sitemap issues that we didn’t even know we had. Our products are now showing up in search within hours of publishing.” – Owner, DhakaFashion

    📈 See more Rafirit Station case studies →


    ✅ Google-Friendly XML Sitemap Checklist

    # Checklist Item Status
    1 Include only canonical, indexable URLs
    2 Exclude noindex, redirect, and duplicate pages
    3 Use proper XML syntax with correct namespace
    4 Set priority values from 0.0 to 1.0 (not all 1.0)
    5 Use changefreq values appropriate for update frequency
    6 Keep sitemap under 50MB or 50,000 URLs
    7 Create separate sitemaps for different content types (if large)
    8 Use index sitemap file for multiple sitemaps
    9 Validate XML syntax before submission
    10 Submit to Google Search Console and Bing Webmaster Tools
    11 Monitor indexing coverage and sitemap errors weekly
    12 Update sitemap after major site changes
    13 Add image/video extensions if applicable ⚠️
    14 Remove low-value URLs from sitemap
    15 Use robots.txt to point to sitemap location

    ❓ Frequently Asked Questions

    Q: What is an XML sitemap?

    An XML sitemap is a file that lists all important pages on your website, helping search engines like Google discover and crawl your content more efficiently. It acts as a roadmap for bots, ensuring they don’t miss critical pages. For a Dhaka business with hundreds of products, a sitemap is essential for complete indexing.

    Q: Why does a sitemap need to be Google-friendly?

    A Google-friendly sitemap follows Google’s guidelines, including correct XML formatting, proper use of changefreq and priority tags, and exclusion of non-canonical or low-value URLs. Non-compliant sitemaps may be ignored or cause crawling errors. According to Google’s John Mueller, incorrect sitemaps are a common cause of indexing delays.

    Q: How do I create an XML sitemap for my Dhaka business website?

    You can generate a sitemap using plugins like Yoast SEO or Google XML Sitemaps for WordPress, or use online tools like XML-Sitemaps.com for any site. Ensure all URLs are canonical and include only pages meant for indexing. For custom sites, use scripting languages to generate dynamic sitemaps.

    Q: How often should I update my sitemap?

    Update your sitemap every time you publish or remove important pages. Google recommends submitting a fresh sitemap after major site changes. For dynamic sites, automate regeneration via CMS plugins or scripts. A Dhaka news site that updates daily should resubmit daily via ping.

    Q: Is there a limit to the number of URLs in a sitemap?

    Yes, Google’s limit is 50,000 URLs per sitemap or 50MB uncompressed. If you exceed this, create separate sitemaps for different sections (products, blog, etc.) and list them in a sitemap index file. For instance, a large Bangladeshi e-commerce site with 200,000 products needs at least 4 sitemaps.

    Q: Should I include priority and changefreq in my sitemap?

    While Google ignores priority and changefreq as ranking signals, they can guide crawl behavior. Use priority only for relative importance (e.g., 1.0 for homepage, 0.5 for blog posts). Changefreq is optional but use ‘daily’ for news sites. A 2021 study by Merkle showed that setting appropriate priority can increase crawl frequency by 20%.

    Q: How do I submit my sitemap to Google?

    Use Google Search Console: go to Sitemaps under Index, enter the URL (e.g., https://example.com/sitemap.xml), and click Submit. Monitor for errors and ensure it is processed. Alternatively, ping Google via URL. For Bing, use Bing Webmaster Tools.

    Q: Does Rafirit Station offer XML sitemap services?

    Yes, Rafirit Station provides comprehensive technical SEO services including sitemap generation, validation, and submission. Our team in Dhaka can optimize your sitemap strategy for better indexing and rankings. Contact us for a free consultation.


    🎯 The Bottom Line

    A Google-friendly XML sitemap is not just a technical checkbox—it’s a strategic asset for your Dhaka website. The counterintuitive truth is that a smaller, cleaner sitemap often outperforms a large, all-inclusive one. Google’s John Mueller has stated that a sitemap with only 10 high-quality pages can be more effective than one with 10,000 low-value URLs.

    In 2026, with Google’s focus on user experience and content quality, your sitemap should reflect only your best pages. By following the phases above—planning, generating, validating, and submitting—you ensure that Google’s crawlers spend their time on pages that drive business results. For Bangladeshi businesses, this means faster indexing, better rankings, and ultimately more revenue from organic search.

    Remember: Your sitemap is a living document. Review it monthly, prune dead weight, and add new high-value pages. This continuous optimization is what separates top-performing sites from the rest.


    ⚡ Your Next Step (Do This Today)

    1. Check your current sitemap in Google Search Console. Note the number of submitted vs. indexed URLs.
    2. Export your site’s URL list and remove any pages with noindex, redirects, or thin content.
    3. If your site is on WordPress, install Yoast SEO or Rank Math to generate automatic sitemaps.
    4. Validate your sitemap using a free online XML validator.
    5. Submit the cleaned-up sitemap to Google Search Console and monitor for errors.

    Ready to Get Results?

    Let Rafirit Station’s experts create a Google-friendly XML sitemap for your Dhaka business. We’ll audit, generate, and submit a sitemap that accelerates indexing.

    🗓 Book Your Free Strategy Call →

    💬 Drop “Google-friendly XML sitemap” in the comments and we’ll send you our free sitemap checklist — no email required.

    Leave a comment

    Your email address will not be published. Required fields are marked *

    Ready to apply this?

    Need help with your seo?

    Book a free 30-minute call. We will tell you what we would do first, whether or not you hire us.

    Get a free SEO audit WhatsApp us