<?php
include('ayar.php');
global $prefix, $siteadi;
header('Content-type: text/xml');
echo ""<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<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\">
<url>
<loc>".$siteadi."</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>";
$sor=mysql_query("SELECT * FROM ".$prefix."_haberler");
while ($yaz=mysql_fetch_array($sor)){
$baslik=$yaz["baslik"];
echo "
<url>
<loc>".$siteadi."/".$baslik.".html</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>";
}
echo "</urlset>";
?>böyle dener misiniz ?