APSL / puput

A Django blog app implemented in Wagtail
MIT License
629 stars 160 forks source link

Duplicate pages #216

Closed dpetrov closed 4 years ago

dpetrov commented 4 years ago

I use Puput as a Plugin and recently have updated my wagtail and puput instance to the latest available:

$ pip3 freeze | egrep 'wagtail|puput'
puput==1.1.0
wagtail==2.8

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.

dpetrov commented 4 years ago

Closing this one as it's merged.