Forum Moderators: buckworks

Message Too Old, No Replies

How to add only right urls in Magento default sitemap.xml

         

avijitglobe

12:24 pm on Sep 7, 2015 (gmt 0)

10+ Year Member



Hello,

In my magento store there are 1000+ products. Some products are in 2 or 3 categories as well. I have implemented the canonical url also in the pages to avoid duplicate content problem.

Now the problem is in Magento's default sitemap.xml, it is taking the base url of the product without any directory structure like
http://www.example.com/example.html
But we like to add the canonical url only with the category sub category http://www.example.com/example/example/example.html

Can we edit the magento sitemap functionality to make sure the canonical urls been only inserted not the base url.
If any extension can help me to achieve this then also please let me know

[edited by: engine at 2:23 pm (utc) on Sep 8, 2015]
[edit reason] please use example.com [/edit]

Planet Web Solution

9:43 am on Jan 8, 2016 (gmt 0)

10+ Year Member



As per my knowledge, Magento does not provide such type of functionality for filtering selected URLs from default sitemap.

we can generate default sitemap, then we can edit that sitemap by removing unnecessary URLs.