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

WordPress Trac noreply at wordpress.org
Mon May 4 10:40:20 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:
--------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"47760" 47760]:
 {{{
 #!CommitTicketReference repository="" revision="47760"
 Canonical: Redirect paged requests for a static page assigned as the
 "Posts page".

 This avoids displaying duplicate content of the home page under different
 URLs with appended page numbers.

 This change only affects the `<!--nextpage-->` pagination (`page` query
 variable) and not the regular multiple posts pagination (`paged` query
 variable).

 The posts page does not support the `<!--nextpage-->` pagination, so
 requests for invalid page numbers should be redirected to the page
 permalink, applying the logic previously implemented for single posts or
 pages.

 Follow-up to [34492], [47727].

 Props jeremyfelt, sachit.tandukar, SergeyBiryukov.
 Fixes #45337. See #40773, #28081, #11694.
 }}}

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


More information about the wp-trac mailing list