[wp-trac] [WordPress Trac] #43928: WordPress treating URL number suffix strangely

WordPress Trac noreply at wordpress.org
Wed May 2 10:45:31 UTC 2018


#43928: WordPress treating URL number suffix strangely
--------------------------+-----------------------------
 Reporter:  galapogos01   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi guys,

 Weird one here that has been bought about by Google Search Console showing
 me Google is indexing hundreds of pages of my site.  I raised a
 [https://wordpress.org/support/topic/wordpress-treating-url-number-suffix-
 strangely/ support ticket] which resulted in the suggestion I raise it
 here.

 WordPress seems to handle any number on the end of a valid URL as if it
 were a real page, and show it as a separate page, complete with canonical
 URL tag.

 Example:

 Real Page: http://www2.cuny.edu/academics/academic-programs/

 Fake page - does not actually exist but returns a page:
 http://www2.cuny.edu/academics/academic-programs/2/

 I have used these pages from the wordpress.org sample section as my
 example to prove its happening not just with my own install (I also tested
 with default theme & all plugins disabled).

 The result of this craziness is that Google will index these many variants
 of the same page, causing duplicate content issues.

 I would have expected WordPress to redirect to the actual page, which
 would have its own (correct) canonical.

 Thoughts? Help!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43928>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list