[wp-trac] [WordPress Trac] #17653: Canonical Redirect when space(s) are used instead of hyphens when requesting a page
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 2 01:25:08 UTC 2011
#17653: Canonical Redirect when space(s) are used instead of hyphens when
requesting a page
--------------------------+-----------------------------
Reporter: jamescollins | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Canonical | Version: 3.2
Severity: normal | Keywords:
--------------------------+-----------------------------
Create a page with a slug that contains a hyphen (eg. /page-name/).
If you then visit /page name/ (ie. use a space instead of a hyphen),
WordPress currently manages to locate and display the page-name page. This
could cause duplicate content issues.
The same issue occurs if multiple spaces are used instead of a hyphen.
As an example, this is the original page: http://jamesc.id.au/test-page/
This page is accessible via:
* http://jamesc.id.au/test%20page/
* http://jamesc.id.au/test%20%20page/
* http://jamesc.id.au/test%20%20%20page/
* http://jamesc.id.au/test%20%20%20%20page/
and so on.
WordPress should either output a 404 error, or redirect to /page-name/.
Tested using the latest 3.2 trunk (r18110).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17653>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list