• 23-08-2012, 00:32:45
    #1
    yahu arkadaşlar bir site açtım yavaş yavaş içini dolduruyorum da asp ile bir türlü dinamik sitemap hazırlayamadım. bir kod yazdım onu da google kabul etmiyor. kodları göstereyim size de. neden olmuyor bir yardım edin allah aşkına.

    <?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"
    <% 
    Function cevir(data) 
    	data = Replace (data ," ","-",1,-1,1) 
    	cevir=data 
    End Function 
    %>
    xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
    http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
    <%
    Set Sur = Server.CreateObject("ADODB.Connection")
    Sur.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("database.mdb")
    %>
    <url>
    <loc>http://www.site.com</loc>
    <priority>1.0</priority>
    <changefreq>daily</changefreq>
    </url>
    
    <%
    i=1 
    Set WM = Server.CreateObject("ADODB.Recordset") 
    sor = "Select * from dizi order by tarih desc" 
    WM.Open sor,Sur,1,3 
     
    do while i<5000 and not WM.eof
    
    dizi = WM("dizi")
    sezon = WM("sezon")
    bolum = WM("bolum")
    %>
    <url>
    <loc>http://www.site.com/izle.asp?adi=<%=cevir(dizi)%>&sezon=<%=sezon%>&bolum=<%=bolum%></loc>
    <priority>0.5</priority>
    <changefreq>daily</changefreq>
    </url>
    <%
    WM.movenext
    i=i+1
    loop
    WM.close
    %>
    verdiği hata da;

    Çözümleme hatası
    Site Haritanızı okuyamadık. Tanıyamadığımız bir giriş içeriyor olabilir. Yeniden göndermeden önce lütfen Site Haritanızı doğrulayın.
  • 29-08-2012, 21:57:15
    #2
    Alıntı
    </urlset>
    nerde hocam bitişi? en alta koyun bunu