Erol adlı üyeden alıntı: mesajı görüntüle
Benim kodlarım böyle, hata nerde?
<?
    // Sayfa Ayarlari Yapiliyor...
    $sayfa='sitemap.php';
     include 'ayar.php';
?>
<html>
<head>
<title>Program Arsivi - <?=$site_isim?></title>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
    <META NAME="keywords" CONTENT="Program ***** Game Software XXX Music Magazine EBookgrup resim harita liste map">
    <META NAME="description" CONTENT="Sitemizde bulunan tüm Program ***** Game Software XXX Music Magazine EBook listesi bu bölümde yer aliyor.">
<?=$meta?>
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript" src="javascript.js"></script>
</head>
<body><font size="1" face="Verdana">
<? if (!$k1) { $k1=0; }
    $k2=100;
    $sorgu=mysql_query("select id,ad from z_inndir WHERE (durum='a') order by id desc limit $k1,$k2 ");
    $sayi=15000;
    while ($satir = mysql_fetch_array($sorgu)) {
        echo '• <a href="'.dosya($satir[ad]).'_'.$satir[id].'.htm" title="'.$satir[ad].'" target="_blank">'.$satir[ad].'</a><br>
        ';
    }
    echo '<hr><center>';
    if ($sayi > $k2) { 
        /* Önceki Sayfa Linki
        if ($k3>0) { 
            echo '<a href="'.$sayfa.'?k1='.$k3.'"><b>« Önceki Sayfa</b></a>';
        }
        // Önceki Sayfa Linki */
        // Sayfa Numlaralari Listesi
        $kat1=$k2*16;
        $kat2=$k2*18;
        if ($k1>$kat1) {
            $a1=$k1-$kat1; $a2=$k1+$kat1;
        } else { 
            $a1=0; $a2=$kat2;
        }
        if ($a2>$sayi) { $a2=$sayi; }
        for ($a=$a1;$a<$a2;$a=$a+$k2) {
            $link1=@($a/$k2)+1;
            $cik=($k1/$k2)+1;
            if ($cik==$link1) { 
                echo ' <b>['.$link1.']</b> ';
            } else  { 
                echo ' [<a href="'.$sayfa.'?k1='.$a.'">'.$link1.'</a>] ';
            }
        } 
        // Sayfa Numlaralari Listesi
        /* Sonraki Sayfa Link
        if ($k4<$sayi) { 
            echo '<a href="'.$sayfa.'?k1='.$k4.'"><b>Sonraki Sayfa »</b></a>';
        }
        // Sonraki Sayfa Link */
    } ?>
</font>
</body>
</html>
Şöyle kullan;
<?php
include 'ayar.php';
header("content-type: text/xml");
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/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/09/sitemap.xsd">
<?php
$sonuc = mysql_query("select id,ad from z_inndir WHERE (durum='a') order by id desc");
while($satir = mysql_fetch_assoc($sonuc)){
?><url>
  <loc>http://www.sitem.com/<?php echo dosya($satir[ad]).'_'.$satir[id].'.htm'; ?></loc>
  <priority>0.5</priority>
  <changefreq>daily</changefreq>
</url>
<?php
}
?>
</urlset>
Google webmaster tools site haritaları bölümünden de url yi ekle. Sitenden link vermene gerek yok.