Home › Blog › What Is a Sitemap? How to Create and Submit It to Google
What Is a Sitemap? How to Create and Submit It to Google
A sitemap is a file that lists the important pages of your website. It helps search engines find your pages faster, especially on a new site that has few links from other places.
What a sitemap looks like
Most sitemaps are an XML file named sitemap.xml at the root of your site, for example yoursite.com/sitemap.xml. It contains one entry per page with the address and, optionally, the date it was last changed.
How to create one
If you use WordPress, Wix or Shopify, a sitemap is usually made for you. For a hand-made site, you can write the file yourself or use a free generator, then upload it to the main folder of your site. One file can hold up to 50,000 addresses.
How to submit it
Open Google Search Console, choose your site, and go to Sitemaps in the left menu. Type sitemap.xml in the box and press Submit. After a few minutes the status should say Success.
Also add it to robots.txt
Add one line to your robots.txt file that starts with the word Sitemap and then the full address of the file. This lets other search engines find it as well.
Common mistakes
- Listing pages that redirect or show an error.
- Using the wrong domain, such as http instead of https.
- Forgetting to update the file after adding new pages.
- Including pages you do not want in search.
What a sitemap cannot do
A sitemap does not guarantee that Google will index every page. It only helps Google discover them. Good content and internal links are still needed.
Frequently asked questions
Do small websites need a sitemap?
A very small site with good links between pages may be found without one, but a sitemap is easy to add and does no harm.
How long until Google reads my sitemap?
It can take from a few hours to a few days. Check the Sitemaps report in Search Console for the status.
Related articles
- How to Add Your Website to Google Search Console (Step by Step)
- What Is robots.txt? A Beginner Guide With Safe Examples
- How to Check If Your Website Is Indexed on Google (3 Easy Ways)
- What Is a Canonical Tag? How It Prevents Duplicate Content Problems
- Why Is My Website Not Showing on Google? 7 Reasons and Fixes
- How to Read the Google Search Console Performance Report
Free tools: Free website checker in Urdu · Free website speed test · Free SEO checker in Roman Urdu
Check my website free