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

前端 未结 2 992
被撕碎了的回忆
被撕碎了的回忆 2020-12-12 03:35

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


<         


        
相关标签:
2条回答
  • 2020-12-12 03:55

    There is no fixed name/location defined.

    You can tell search engines where your sitemap is located by

    • linking it from your robots.txt,
    • sending an HTTP request to each search engine, or
    • submitting it to each search engine.

    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
    
    0 讨论(0)
  • 2020-12-12 04:02

    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 讨论(0)
提交回复
热议问题