What should be the name of the sitemap file for Google SEO?

2.7k views Asked by At

I created a sitemap for my website that contains the below code:

<?xml version="1.0" encoding="UTF-8"?>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

<url>
  <loc>http://www.example.com/</loc>
</url>
<url>
  <loc>http://www.example.com/aboutus.html</loc>
</url>
<url>
  <loc>http://www.example.com/contactus.html</loc>
</url>
<url>
  <loc>http://www.example.com/careers.html</loc>
</url>
<url>
  <loc>http://www.example.com/terms.html</loc>
</url>
</urlset>

My doubt is that what should be the name of the file that contains this code so that Google could find my sitemap file?

2

There are 2 answers

0
Gurpreet Singh On BEST ANSWER

basically the site map file name is if XML then /sitemap.xml

but its not any issue if you use any other name but we have to add this to webmaster.

0
unor On

There is no fixed name/location defined.

You can tell search engines where your sitemap is located by

Of course the easiest way is to include the URL in your robots.txt, as you only have to do this one time, instead of contacting each search engine separately. And note that not only search engines are interested in your sitemap, so including it in your robots.txt allows other consumers to find it also.

Simply add this line, containing the full URL to your sitemap, in your robots.txt:

Sitemap: http://www.example.com/your-sitemap-file.xml