Glossary

What Is XML Sitemap?

An XML sitemap is a file that lists all the important URLs on your website, helping search engines discover and crawl your content more efficiently. It's typically located at example.com/sitemap.xml.

Why It Matters

XML sitemaps help search engines understand your site structure. While not directly related to domain forwarding, understanding sitemaps helps when planning brand migrations and domain consolidation. Sitemaps also help search engines use their crawl budget efficiently by pointing them to important pages.

XML Sitemap Structure

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2024-01-15</lastmod>
  </url>
  <url>
    <loc>https://example.com/pricing</loc>
    <lastmod>2024-01-10</lastmod>
  </url>
</urlset>

Sitemaps and Domain Migration

When migrating from old-domain.com to new-domain.com:

  1. Set up 301 redirects from old to new domain (using Domain Forward)
  2. Update the sitemap on new-domain.com with all final URLs
  3. Submit the new sitemap in Google Search Console
  4. Keep the old domain redirecting — don’t add old URLs to the sitemap
ActionCorrectIncorrect
Sitemap locationnew-domain.com/sitemap.xmlold-domain.com/sitemap.xml
Sitemap URLshttps://new-domain.com/pagehttps://old-domain.com/page
robots.txtReference sitemap on new domainReference old domain

Related Terms

Frequently
asked questions

No. A forwarded domain redirects all traffic — there are no pages to list in a sitemap. The destination site should have a sitemap that includes the final URLs.

Still Confused? Try It Free.

Set up your first domain forward in under 5 minutes. Free plan includes 5 domains.