升级后站点地图问题?

2016-07-07 15:40 来源:www.chinab4c.com 作者:ecshop专家

升级后站点地图问题?
如下面所示,前面的生存了地图,后面全是首页的链接?
<?xml version="1.0" encoding="UTF-8" ?>
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
- <url>
<loc>http://vvinn.com/</loc>

<lastmod>2009-07-17</lastmod>

<changefreq>monthly</changefreq>

<priority>0.8</priority>

</url>


-

- <url>
<loc>http://vvinn.com/goods-8-RESCUER-%25D5%25FC%25BE%25C8%25D5%25DF%2BR-ONE%25B0%25E63D%25CB%25AB%25BC%25E7%25B1%25B3%25B0%25FC%2528%25BA%25DA%25C9%25AB%2529%25D0%25C2%25C6%25B7.html</loc>

<lastmod>2009-07-17</lastmod>

<changefreq>daily</changefreq>

<priority>0.6</priority>

</url>


- <url>




- <url>
<loc>http://vvinn.com/</loc>

<lastmod>2009-07-17</lastmod>

<changefreq>daily</changefreq>

<priority>0.6</priority>

</url>


- <url>
<loc>http://vvinn.com/</loc>

<lastmod>2009-07-17</lastmod>

<changefreq>daily</changefreq>

<priority>0.6</priority>

</url>


- <url>
<loc>http://vvinn.com/</loc>

<lastmod>2009-07-17</lastmod>

<changefreq>daily</changefreq>

<priority>0.6</priority>

</url>


- <url>

回答:
admin下sitemap.php 101行原来的
  1. $article_url=$row['open_type'] != 1 ? build_uri('article', array('aid'=>$article_id), $row['title']) : trim($row['file_url']);
复制代码
修改为
  1. $article_url=$row['open_type'] != 1 ? build_uri('article', array('aid'=>$row['article_id']), $row['title']) : trim($row['file_url']);
复制代码
根目录下sitemaps.php 107行原来的
  1. $article_url=$row['open_type'] != 1 ? build_uri('article', array('aid'=>$article_id), $row['title']) : trim($row['file_url']);
复制代码
修改为
  1. $article_url=$row['open_type'] != 1 ? build_uri('article', array('aid'=>$row['article_id']), $row['title']) : trim($row['file_url']);
复制代码