Sitemap Bölmek - R10.net
15
Bildirimler TÜMÜNÜ OKUNDU SAY
Yükleniyor, lütfen bekleyiniz..
Giriş Yap Kayıt Ol
  • 28-04-2010, 01:05:20
    #1
    Arkadaşlar benim muzik tablomda toplam 100k müzik var. bunları sitemap'e ekliyorum fakat google kabul etmiyor. her 1 sitemap max 50k url olmak zorunda limit belirliyorum 50k olarak fakat yine kabul etmiyor. 20k olarakda belirledim fakat yine kabul etmiyor. Kodlarım aşağıda yardımcı olursanız sevinirim.


     <?php
    include('../ayarlar.php');
    $ayarlar = mysql_fetch_array(mysql_query("select title ,site_url from ayarlar"));
    
    $site_url = $ayarlar["site_url"];
    
    echo '<?xml version="1.0" encoding="ISO-8859-9"?>
    <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi chemaLocation="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>'.$site_url.'/</loc>
            <changefreq>always</changefreq>
            <priority>1.0</priority>
        </url>';
    $muzikler = mysql_query("SELECT id,muzik_seo FROM muzikler ORDER BY id ASC limit 0, 10000");
    $saydirs = mysql_fetch_array($muzikler);
    for(i = 0; i) {
        echo "\t<url>\n";
        echo "\t\t<loc>$site_url/".$saydirs["id"]."-".$saydirs["muzik_seo"]."-dinle.html</loc>\n";
        echo "\t\t<changefreq>daily</changefreq>\n";
        echo "\t\t<priority>0.4</priority>\n";
        echo "\t</url>\n";
    }
    echo '</urlset>';
    ?>
    Şimdiden teşekkürler
  • 28-04-2010, 01:13:02
    #2
    hocam sitema1.php
    <?php
    include('../ayarlar.php');
    $ayarlar = mysql_fetch_array(mysql_query("select title ,site_url from ayarlar"));

    $site_url = $ayarlar["site_url"];

    echo '<?xml version="1.0" encoding="ISO-8859-9"?>
    <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi chemaLocation="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>'.$site_url.'/</loc>
    <changefreq>always</changefreq>
    <priority>1.0</priority>
    </url>';
    $muzikler = mysql_query("SELECT id,muzik_seo FROM muzikler ORDER BY id ASC limit 0, 50000");
    $saydirs = mysql_fetch_array($muzikler);
    for(i = 0; i) {
    echo "\t<url>\n";
    echo "\t\t<loc>$site_url/".$saydirs["id"]."-".$saydirs["muzik_seo"]."-dinle.html</loc>\n";
    echo "\t\t<changefreq>daily</changefreq>\n";
    echo "\t\t<priority>0.4</priority>\n";
    echo "\t</url>\n";
    }
    echo '</urlset>';
    ?>

    böyle olsun
    sitemap2.php
    <?php
    include('../ayarlar.php');
    $ayarlar = mysql_fetch_array(mysql_query("select title ,site_url from ayarlar"));

    $site_url = $ayarlar["site_url"];

    echo '<?xml version="1.0" encoding="ISO-8859-9"?>
    <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi chemaLocation="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>'.$site_url.'/</loc>
    <changefreq>always</changefreq>
    <priority>1.0</priority>
    </url>';
    $muzikler = mysql_query("SELECT id,muzik_seo FROM muzikler ORDER BY id ASC limit 0, 50000,10000");
    $saydirs = mysql_fetch_array($muzikler);
    for(i = 0; i) {
    echo "\t<url>\n";
    echo "\t\t<loc>$site_url/".$saydirs["id"]."-".$saydirs["muzik_seo"]."-dinle.html</loc>\n";
    echo "\t\t<changefreq>daily</changefreq>\n";
    echo "\t\t<priority>0.4</priority>\n";
    echo "\t</url>\n";
    }
    echo '</urlset>';
    ?>
    bu şekılde yapın duzelır
  • 28-04-2010, 11:58:51
    #3
    durgun99 adlı üyeden alıntı
    hocam sitema1.php
    <?php
    include('../ayarlar.php');
    $ayarlar = mysql_fetch_array(mysql_query("select title ,site_url from ayarlar"));

    $site_url = $ayarlar["site_url"];

    echo '<?xml version="1.0" encoding="ISO-8859-9"?>
    <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi chemaLocation="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>'.$site_url.'/</loc>
    <changefreq>always</changefreq>
    <priority>1.0</priority>
    </url>';
    $muzikler = mysql_query("SELECT id,muzik_seo FROM muzikler ORDER BY id ASC limit 0, 50000");
    $saydirs = mysql_fetch_array($muzikler);
    for(i = 0; i) {
    echo "\t<url>\n";
    echo "\t\t<loc>$site_url/".$saydirs["id"]."-".$saydirs["muzik_seo"]."-dinle.html</loc>\n";
    echo "\t\t<changefreq>daily</changefreq>\n";
    echo "\t\t<priority>0.4</priority>\n";
    echo "\t</url>\n";
    }
    echo '</urlset>';
    ?>

    böyle olsun
    sitemap2.php
    <?php
    include('../ayarlar.php');
    $ayarlar = mysql_fetch_array(mysql_query("select title ,site_url from ayarlar"));

    $site_url = $ayarlar["site_url"];

    echo '<?xml version="1.0" encoding="ISO-8859-9"?>
    <urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi chemaLocation="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>'.$site_url.'/</loc>
    <changefreq>always</changefreq>
    <priority>1.0</priority>
    </url>';
    $muzikler = mysql_query("SELECT id,muzik_seo FROM muzikler ORDER BY id ASC limit 0, 50000,10000");
    $saydirs = mysql_fetch_array($muzikler);
    for(i = 0; i) {
    echo "\t<url>\n";
    echo "\t\t<loc>$site_url/".$saydirs["id"]."-".$saydirs["muzik_seo"]."-dinle.html</loc>\n";
    echo "\t\t<changefreq>daily</changefreq>\n";
    echo "\t\t<priority>0.4</priority>\n";
    echo "\t</url>\n";
    }
    echo '</urlset>';
    ?>
    bu şekılde yapın duzelır

    Parse error: syntax error, unexpected '=', expecting ';' in /home/******/public_html/sitemap/sitemap2.php on line 16

    hata verdi