• 02-12-2020, 10:54:05
    #1
    Merhabalar sitemap.php dosyasını sitemap.xml'e dönüştürdüm ama news bunu görmüyormuş. Sanırım sitemapın newse göre ayarlanması gerekiyormuş bu konuda yardımcı olabilecek var mı?
  • 02-12-2020, 11:03:37
    #2
    Google News için xml'in şu formatta olması gerekiyor:

    <?xml version='1.0' encoding='UTF-8'?>
    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
         xmlns:news="http://www.google.com/schemas/sitemap-news/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
           http://www.google.com/schemas/sitemap-news/0.9
           http://www.google.com/schemas/sitemap-news/0.9/sitemap-news.xsd">
     <url>
        ...
     </url>
    </urlset><?xml version='1.0' encoding='UTF-8'?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/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 http://www.google.com/schemas/sitemap-news/0.9 http://www.google.com/schemas/sitemap-news/0.9/sitemap-news.xsd"> <url> ... </url> </urlset>
    Kaynak:
    https://support.google.com/news/publisher-center/answer/9607107?hl=tr

    Ayrıca online xml validatorler var onlardan birisinde deneyip hata var mı kontrol edebilirsin.