I have the sitemap plugin installed. As already stated in the title, some pages are twice present in the sitemap.xml. Don't know why!
Archive
Hi, can you identify which pages are duplicated, maybe there's a pattern in the duplication that can help identify why?
This is the sitemap.xml:
XML
<urlset>
<url>
<loc>http://swingfield.band</loc>
<lastmod>2015-08-27</lastmod>
</url>
<url>
<loc>http://swingfield.band/ueber-uns</loc>
<lastmod>2015-10-02</lastmod>
</url>
<url>
<loc>http://swingfield.band/galerie</loc>
<lastmod>2015-10-01</lastmod>
</url>
<url>
<loc>http://swingfield.band/galerie</loc>
<lastmod>2015-10-01</lastmod>
</url>
<url>
<loc>http://swingfield.band</loc>
<lastmod>2015-08-27</lastmod>
</url>
<url>
<loc>http://swingfield.band/impressum</loc>
<lastmod>2015-10-02</lastmod>
</url>
<url>
<loc>http://swingfield.band/ueber-uns</loc>
<lastmod>2015-10-02</lastmod>
</url>
<url>
<loc>http://swingfield.band/videos</loc>
<lastmod>2015-10-02</lastmod>
</url>
</urlset>
Try this: add
$routes = array_unique($pages->routes());
in line 62 of user/plugins/sitemap/sitemap.php, instead of $routes = $pages->routes();. Does that fix it?
Yes, it does! Thank you!
ok, will add that to the plugin
Added! will be in the next release
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1341 | 9 years ago | ||
| 2 | 928 | 9 years ago | ||
| 2 | 4057 | 9 years ago | ||
| 1 | 2942 | 9 years ago | ||
| 3 | 1115 | 9 years ago |