PDA

View Full Version : مشکل در سایت مپ بنده



Farid18
چهارشنبه 12 اسفند 1394, 10:56 صبح
http://cran.ir/sitemap.xml

با سلام لطفا ببینید سایت مپ بالا کلا بهم ریتخه عیب از چیه؟


اینم کداش :



<?phpheader("Content-Type: application/xml; charset=utf-8");error_reporting(E_ERROR);include('include/config.php');include('include/connect.php');include('include/functions.php');include('include/setting.php');$siteurl = $general_setting['siteurl'];$today = date('Y-m-d'); $feed_output .= '<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="include/sitemap.xsl"?><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/0.9/sitemap.xsd">'; $feed_output .= "<url> <loc>$siteurl</loc> <lastmod>$today</lastmod> <changefreq>daily</changefreq> <priority>1</priority> </url>"; $categories_query = mysql_query("SELECT * FROM categories ORDER BY ord ASC"); while($c_row = mysql_fetch_array($categories_query)) { $feed_output .= "<url>"; $feed_output .= "<loc>$siteurl/category/".$c_row['id']."_".url_slug($c_row['category'])."</loc>"; $feed_output .= "<lastmod>$today</lastmod> <changefreq>daily</changefreq> <priority>0.8</priority> </url>"; }

$items_query = mysql_query("SELECT * FROM items WHERE published='1' ORDER BY id DESC LIMIT 10000"); while($row = mysql_fetch_array($items_query)) { $feed_output .= "<url>"; $feed_output .= "<loc>$siteurl/item/".$row['id']."_".url_slug($row['title'])."</loc>"; $feed_output .= "<lastmod>$today</lastmod> <changefreq>monthly</changefreq> <priority>0.5</priority> </url>"; }
$feed_output .= "</urlset>";echo $feed_output;
?>