OctoberCMS 博客分页内容重复问题

OctoberCMS Blog pagination content duplication issue

我使用了 OctoberCMS 博客插件 (https://octobercms.com/plugin/rainlab-blog),它的工作符合我的预期。但是,我有一个小问题..

我的 SEO 工具 (SEMRush - https://www.semrush.com/) 告诉我这是重复的内容..我该如何解决这个错误?

http://mywebsite.com/rosterelf/blog http://mywebsite.com/rosterelf/blog/1

我的 URL 博客页面结构 - /blog/:page?|^[0-9]+$

如您所见,在博客列表中,我有一个带有“下一页”和“上一页”链接的分页。如果我从第 2 页转到第 1 页,那么这种 URL 我正在重定向http://mywebsite.com/rosterelf/blog/1 显然与 http://mywebsite.com/rosterelf/blog 具有相同的内容,因此我的 SEO 工具说“重复内容”

我该如何解决这个问题?

好吧,伙计们..最终我做了以下事情。

function onStart()
{
    
    if(!empty($this->param('page')) && $this->param('page') == '1')
    {
        return Redirect::to('/blog', 301);
    }
}

在这里,我只是设置了 301 重定向..所以我的 SEO TOOLKIT 不会抓取此页面。

谢谢