Süleyman hocam senin verdiğin kodu sitemap.php dosyasına ekleyip kaydettim <br /> taglarıda kalktı sitemap.php dosyasını google'a site haritası olarak gönderdim ancak bu seferde aşağıdaki hatayı verdi bugün.
Desteklenmeyen dosya biçimi
Site Haritanız desteklenen bir biçimde değil. Lütfen Site Haritası yönergelerimize uygun olmasını sağlayın ve yeniden gönderin.
linki bu
http://www.videoara.org/sitemap.php sorun varmı bunda ?
Birde Doğu hocamın verdiğini kullanmaya çalıştım
Kod bu şekilde
<?php
include("baglan.php");
$date = date('Y-m-d');
$sorgu = mysql_query("SELECT * FROM videolar ORDER BY id desc");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
echo "<urlset 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\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">";
while($sonuc=mysql_fetch_assoc($sorgu)){
echo " <url>
<loc>http://www.videoara.org/".$sonuc[basliktr]."-".$sonuc[videoid]."</loc>
<lastmod>$date</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n";
}
echo '</urlset>';
?>veritabanı sorgum bağlant ayarlarım doğru ancak bundada hata veriyor .
Bunu sitemap.xml larak gönderdim linki burda
http://www.videoara.org/sitemap.xml tıklarsanız hatayı görürsünüz.
Ne yapabilirim ?