[wp-trac] [WordPress Trac] #40773: Redirect paged requests for non-paginated posts to avoid duplicate content

WordPress Trac noreply at wordpress.org
Thu Apr 30 12:03:27 UTC 2020


#40773: Redirect paged requests for non-paginated posts to avoid duplicate content
--------------------------+-----------------------------
 Reporter:  prografika    |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.5
Component:  Canonical     |     Version:  2.9
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47727" 47727]:
 {{{
 #!CommitTicketReference repository="" revision="47727"
 Canonical: Redirect paged requests for non-paginated posts to the post
 permalink.

 This avoids displaying duplicate content of the same post under different
 URLs and ensures the canonical URL is correct.

 Previously, requests for invalid page numbers were only redirected to the
 post permalink if the post was actually paginated using the `<!--
 nextpage-->` marker.

 Follow-up to [34492].

 Props jeremyfelt, prografika, sachit.tandukar, subrataemfluence, hronak,
 ekatherine, henry.wright, chesio, dd32, SergeyBiryukov.
 Fixes #40773. See #45337, #28081, #11694.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40773#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list