Php bölümüne baksan ucretsiz 1-2 tane script bulursun..Alttakini sitemap.php olarak kaydet sitene yükle ardından htaccess icine sunu yaz
RewriteRule ^sitemap.xml$ sitemap.php [L]
<?
header('content-type: text/xml');
include_once("mysqlbaglanti.php");
function seolink($tmpStr) {
$tmpStr = ereg_replace('\.', '', $tmpStr);
$tmpStr = ereg_replace('\?', '', $tmpStr);
$tmpStr = ereg_replace('#', '', $tmpStr);
$tmpStr = ereg_replace(',', '', $tmpStr);
$tmpStr = ereg_replace('/', '', $tmpStr);
$tmpStr = ereg_replace(';', '', $tmpStr);
$tmpStr = ereg_replace(':', '', $tmpStr);
$tmpStr = ereg_replace('&', '', $tmpStr);
$tmpStr=trim($tmpStr);
$tmpStr = ereg_replace(' ', '-', $tmpStr);
$tmpStr = ereg_replace('ç', 'c', $tmpStr);
$tmpStr = ereg_replace('ğ', 'g', $tmpStr);
$tmpStr = ereg_replace('ı', 'i', $tmpStr);
$tmpStr = ereg_replace('ö', 'o', $tmpStr);
$tmpStr = ereg_replace('ş', 's', $tmpStr);
$tmpStr = ereg_replace('ü', 'u', $tmpStr);
$tmpStr = ereg_replace('Ç', 'C', $tmpStr);
$tmpStr = ereg_replace('Ğ', 'G', $tmpStr);
$tmpStr = ereg_replace('İ', 'i', $tmpStr);
$tmpStr = ereg_replace('Ö', 'O', $tmpStr);
$tmpStr = ereg_replace('Ş', 'S', $tmpStr);
$tmpStr = ereg_replace('Ü', 'U', $tmpStr);
$tmpStr = ereg_replace('\'', '', $tmpStr);
return strtolower($tmpStr);
}
echo('<'.'?xml version="1.0" encoding="UTF-8"'.'?'.'>');
echo('<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">');
$q = mysql_query("SELECT id,konu_adi FROM tabloadi order by id desc limit 0,50000");
while($p = mysql_fetch_row($q))
{
$id = $p[0];
$konuadi= $p[1];
echo("<url>
<loc>$site/icerik-".$id."-".seolink($konuadi).".html</loc>
<changefreq>daily</changefreq>
<priority>1.00</priority>
</url>
");
}
?>
</urlset>