header("content-type: text/xml");
echo '';
?>
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">
include "baglanti.php";
$sorgu = mysql_query("Select id,url from tabloAdin order by id DESC");
while($satir = mysql_fetch_assoc($sorgu)){
$id = $satir['id'];
$url = $satir['url'];
?>
http://www.siteadin.com/=$url;?>-=$id;?>.html
0.5
daily
}
?>
.htaccess ı da böyle kandırırsın...
RewriteRule ^sitemap.xml$ sitemap.php [L,QSA]