and I use django.contrib.sitemaps to generate a sitemap.xml file. I see currently, that the sitemap.xml includes the links in a format: /blog/slug and not in /blog/year/month/day/slug which results to a duplicate indexing from google and duplicate content. Both pages serve also the same content.
So my think is, is there a way to redirect all /blog/slug urls and make the sitemap.xml include the correct links? Also, I am a bit sure if here is the correct place to be reported, but all hints would be really appreciated.
I use Puput as a Plugin and recently have updated my wagtail and puput instance to the latest available:
and I use
django.contrib.sitemaps
to generate a sitemap.xml file. I see currently, that the sitemap.xml includes the links in a format:/blog/slug
and not in/blog/year/month/day/slug
which results to a duplicate indexing from google and duplicate content. Both pages serve also the same content.So my think is, is there a way to redirect all
/blog/slug
urls and make the sitemap.xml include the correct links? Also, I am a bit sure if here is the correct place to be reported, but all hints would be really appreciated.