Website Sitemap Generator

Sitemap Generator Tool By Aqib Chaudhary

Website Sitemap Generator

Generate an XML sitemap for your website to improve search engine indexing

Configuration

' . PHP_EOL; $sitemapContent .= '' . PHP_EOL; // Parse base URL to get domain $urlParts = parse_url($url); $domain = $urlParts['host']; $scheme = $urlParts['scheme']; $base = "$scheme://$domain"; // Add starting URL to queue $urlsToVisit[] = $url; $visitedUrls = array(); // Crawl the website $currentDepth = 0; while (!empty($urlsToVisit) && $currentDepth < $crawl_depth) { $currentUrls = $urlsToVisit; $urlsToVisit = array(); foreach ($currentUrls as $currentUrl) { if (in_array($currentUrl, $visitedUrls)) { continue; } // Add to visited $visitedUrls[] = $currentUrl; // Update progress $processedLinks++; if ($totalLinks > 0) { $progressPercentage = min(100, round(($processedLinks / $totalLinks) * 100)); } // Add to sitemap $sitemapContent .= ' ' . PHP_EOL; $sitemapContent .= ' ' . htmlspecialchars($currentUrl) . '' . PHP_EOL; $sitemapContent .= ' ' . date('c') . '' . PHP_EOL; $sitemapContent .= ' ' . $changefreq . '' . PHP_EOL; $sitemapContent .= ' ' . $priority . '' . PHP_EOL; $sitemapContent .= ' ' . PHP_EOL; // Get links from current page if ($currentDepth < $crawl_depth - 1) { $html = @file_get_contents($currentUrl); if ($html) { // Extract links preg_match_all('/getMessage(); } } } ?>
" class="space-y-4">

Enter your website URL including http:// or https://

How many levels deep to crawl the website

How frequently the page is likely to change

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

The priority of this URL relative to other URLs on your site

Generation Progress

% complete - Processed URLs

Sitemap Results

Sitemap Generated Successfully!
Download Sitemap XML

Found URLs in your website

Preview:

 1000) {
                            $previewContent .= "\n...\n[Content truncated for preview]";
                        }
                        echo $previewContent;
                    ?>

About Sitemaps

A sitemap is an XML file that lists the URLs for a site. It allows webmasters to include additional information about each URL such as:

  • When it was last updated
  • How often it changes
  • How important it is in relation to other URLs in the site

This information helps search engines crawl the site more efficiently and intelligently.

Benefits of using a sitemap:

  • Better indexing of your website
  • Faster discovery of new or updated content
  • More accurate crawling of your important pages
  • Helps search engines understand your website structure

After generating your sitemap, you should submit it to search engines through their webmaster tools.

Sitemap Generator Tool

A tool to improve your website's search engine visibility

Scroll to Top