Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there,

    Do you use Yoast? I think the canonical link can fix this issue: https://yoast.com/rel-canonical/

    Thread Starter Roman

    (@roman17trushanov)

    Hi!

    Yes, we use Yoast. I am perfectly aware of the canonicalization, but all these unnecessary paginated pages should return 400, and not 200 as they currently do out of crawling optimization reasons. Duplicates are never good.

    Anyone else perhaps has any other ideas? 🙂

    • This reply was modified 2 years, 9 months ago by Roman.

    Hello, again @roman17trushanov,

    I made some researches and I found a similar topic. It seems that a custom code solution would be necessary here, please check: https://wordpress.org/support/topic/wordpress-infinite-link-problem/page/2/

    Thread Starter Roman

    (@roman17trushanov)

    @eulerarthur could you please be more specific about the hint you wanted to bring to my attention? I´ve gone through the whole thread, and I did not find anything really suitable to solve the problem I described, apart from the comment of @carike on the second page.

    You would need to determine where in Core the code is located that paginates the comments.
    Then you would need to decide on a suitable hook to use:
    https://developer.wordpress.org/reference/
    You would then check whether a comment exists on the paginated comment page.
    If not, you would redirect to the original post.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove non-existent /page/ URLs?’ is closed to new replies.