one sitemap file to images/videos/urls/mobile

by Ramesh Kithsiri HettiArachchi   Last Updated April 13, 2018 16:04 PM

My web site is writing sitemaps dynamically when a user created a post. But I have a problem with sitemap types. I have to write separately to sitemap_image.xml,sitemap_url.xml,sitemap_video.xml files when a user write a post and upload images and videos to it.

My Question is:-

Can I write all things to one sitemap file under google SEO rules.?

Example

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" 
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
   <url>
      <loc>http://www.example.com/page1.html</loc>
      <image:image>
         <image:loc>http://example.com/photo.jpg</image:loc>
         <image:title>Grey cat on the table</image:title>
         <image:license>https://creativecommons.org/licenses/by-sa/2.0/</image:license>
         <image:geo_location>Berlin, Germany</image:geo_location>
         <image:caption>Funny cat on the table is looking at photographer.</image:caption>
      </image:image>
      <video:video>            
         <video:thumbnail_loc>http://example.com/thumb1.jpg
         </video: thumbnail_loc>
         <video:title>Clown in the garden</video:title>
         <video:description>Crazy clown is riding a rabbit.</video:description>    
         <video:content_loc>http://www.example.com/video1.mp4</video:content_loc>
      </video:video>
   </url>
</urlset>

Thanks in advanced for any help and sorry for my bad english.



Related Questions



Images sitemap not indexed

Updated March 22, 2017 14:04 PM


Images are not indexed in google search console

Updated June 29, 2017 11:04 AM