So, let say we have created many articles on our blog, and we want google to indexing those of.
We can use sitemap.xml to bulk submit it. But how we can find sitemap.xml file in our website?
How can we find sitemap.xml

1. Manually

There is no standard, so there is no guarantee. With that said, its common for the sitemap to be self labeled and on the root, like this:


example.com/sitemap.xml


Case is sensitive on some servers, so keep that in mind. If its not there, look in the robots file on the root:


example.com/robots.txt


If you don't see it listed in the robots file head to Google and search this:


site:example.com filetype:xml


This will limit the results to XML files on your target domain. At this point its trial-and-error and based on the specifics of the website you are working with. If you get several pages of results from the Google search phrase above then try to limit the results further:


filetype:xml site:example.com inurl:sitemap


or


filetype:xml site:example.com inurl:products


If you still can't find it you can right-click > "View Source" and do a search (aka: "control find" or Ctrl + F) for .xml to see if there is a reference to it in the code.


2. Use robot.txt

According to protocol documentation there are at least three options website designers can use to inform sitemap.xml location to search engines:

  • Informing each search engine of the location through their provided interface
  • Adding url to the robots.txt file
  • Submiting url to search engines through http

So, unless they have chosen to publish the sitemap location on their robots.txt file, you cannot really know where they have put their sitemap.xml files.


3. Google Search Operators

Use Google Search Operators to find it for you

search google with the below code..

inurl:domain.com filetype:xml click on this to view sitemap search example

change domain.com to the domain you want to find the sitemap. this should list all the xml files listed for the given domain.. including all sitemaps :)

Post a Comment

أحدث أقدم