Hi All,

Does there exist a free script which can create a sitemap for my website for free.

My website includes more than 2000 pages.

If there are paid sitemap generators, which one is the cheapest?

Regards
Vaibhav

Dani AI

Generated

Thread from asks for a free script to build a sitemap for a site with 2,000+ pages. Several replies point to online generators and CMS add‑ons (, , , ). Practical takeaway: public web tools can be convenient for small sites, but for thousands of pages a self‑hosted generator (a small script or a CMS/plugin that reads the database or build output) is more reliable, faster, and avoids crawl/URL limits imposed by free services.

Quick checklist and best practices:

  • Sitemap limits: one sitemap holds up to 50,000 URLs and 50MB uncompressed; use a sitemap-index if more are required.
  • Source of truth: generate from the CMS/database or from the build process so URLs, lastmod and canonical status are accurate.
  • Exclude pages marked noindex, duplicate URLs and parameterized pages (respect rel=canonical).
  • Include optional <lastmod> (W3C/ISO format) and compress large files to .gz (the 50MB limit applies before compression).
  • Add a Sitemap: line to robots.txt and submit/update the sitemap in Search Console / Bing Webmaster Tools.
  • Automate: regenerate on publish or with a cron job; for very large sites prefer incremental updates or rolling sitemaps to limit I/O.

Minimal example (PHP) to illustrate generation; replace the $urls source with a DB query or filesystem walk:

<?php
header('Content-Type: application/xml; charset=utf-8');
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n";

$urls = [
  'https://example.com/page1.html',
  'https://example.com/page2.html',
  // populate from DB or build output
];

foreach ($urls as $u) {
    echo "  <url>\n";
    echo "    <loc>" . htmlspecialchars($u, ENT_QUOTES, 'UTF-8') . "</loc>\n";
    echo "    <lastmod>" . date('c') . "</lastmod>\n";
    echo "  </url>\n";
}

echo '</urlset>';

Troubleshooting notes: if crawlers report fetch errors, check that the sitemap URL returns HTTP 200, isn’t blocked by robots.txt, isn’t behind authentication/redirects, and that gzipped files are served correctly. Tying generation to the CMS or build process keeps the sitemap accurate and scales well beyond 2,000 pages.

Recommended Answers

All 6 Replies

Hi All,

Does there exist a free script which can create a sitemap for my website for free.

My website includes more than 2000 pages.

If there are paid sitemap generators, which one is the cheapest?

Regards
Vaibhav

There's tons of sites doing it well online and for free. Search them. See what they are doing ...

Can u PM me any of the few...?

Hi,

Personally, I don't think there would be such kind of unlimited sitemap generators online or they are unreliable services. The best practice is to find out such add-ons according to the in-used script for your sites or blogs. I think their official sites or forums would usually be a nice place for picking up such add-ons. :)

all the best,

Dude you can check the web there are a lot of site available doing this..

If you own or maintain a website or intend to own one, it be great if you get frequent visitors who find satisfaction in getting exactly the information they need from your page?

Xml-sitemaps is good tool for sitemap.xml generate. You can check it out .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.