echo ' xml version=/"1.0/" encoding=/"UTF-8/" ?>';
echo '';
echo '
http://www.domain.com/
'.date("Y").'-'.date("m").'-'.date("d").'T'.date("H:i:s").'+00:00
daily
0.5000
http://www.domain.com/iletisim
'.date("Y").'-'.date("m").'-'.date("d").'T'.date("H:i:s").'+00:00
daily
0.5000
http://www.domain.com/kurumsal
'.date("Y").'-'.date("m").'-'.date("d").'T'.date("H:i:s").'+00:00
daily
0.5000
http://www.domain.com/harita
'.date("Y").'-'.date("m").'-'.date("d").'T'.date("H:i:s").'+00:00
daily
0.5000
';
function seoK($s) {
$tr = array('ş','Ş','ı','I','İ','ğ','Ğ','ü','Ü','ö','Ö','Ç','ç','(',')','/',':',',');
$eng = array('s','s','i','i','i','g','g','u','u','o','o','c','c','','','-','-','');
$s = str_replace($tr,$eng,$s);
$s = strtolower($s);
$s = preg_replace('/&.+?;/', '', $s);
$s = preg_replace('/\s+/', '-', $s);
$s = preg_replace('|-+|', '-', $s);
$s = preg_replace('/#/', '', $s);
$s = str_replace('.', '', $s);
$s = trim($s, '-');
return $s;
}
$kategori= @mysql_query("SELECT id, KategoriAdi from kategoriler ORDER BY id ASC ");
while($cekilenlerX=@mysql_fetch_assoc($kategori))
{
$bilgiurunkAdi=$cekilenlerX["KategoriAdi"];
$bilgiurunKategoriIdX=$cekilenlerX["id"];
echo '
http://www.domain.com//"
".date("Y")."-".date("m")."-".date("d")."T".date("H:i:s")."+00:00
daily
0.5000
';
}
echo " ";
?>
en son xml dosyası oluşturmada mı hata var?
.htaccess dosyası
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(css|js|images|inc|lang)
RewriteRule ^$ index.php [L,QSA]
RewriteRule ^kurumsal$ kurumsal.php [L,QSA]
RewriteRule ^harita$ harita.php [L,QSA]
RewriteRule ^iletisim$ iletisim.php [L,QSA]
RewriteRule ^([0-9a-zA-Z-_]+)/([0-9]+)$ kategori.php?bolum=$1&ktgrId=$2 [L,QSA]
RewriteRule ^sitemap.xml$ sitemap.php [L,NC]