[wp-trac] [WordPress Trac] #20224: WordPress should always add a / at the end of URLs

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 13 09:54:17 UTC 2012


#20224: WordPress should always add a / at the end of URLs
---------------------------+-----------------------------
 Reporter:  Confridin      |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  3.4
 Severity:  normal         |   Keywords:  needs-patch
---------------------------+-----------------------------
 Users can change permalinks. They can add whatever they whant at the end
 of each url. For example :[[BR]]
 - mydomain.com/myurl
 - mydomain.com/myurl/
 - mydomain.com/myurl.php
 - mydomain.com/myurl.html
 - mydomain.com/myurl.htm
 - ...

 There is a bug with search engines and empty URLs (mydomain.com/myurl).
 Google, Yahoo or Bing consider that it's not the same URl as
 mydomain.com/myurl/. They always try to add a / at the end of those URLs :
 it creates duplicate content for search engines that harms website
 visibility. For example, if a WordPress Blog uses /%postname% as
 permalink, Google is going to index both url:
 - mydomain.com/myurl
 - mydomain.com/myurl/

 In order to correct this issue, WordPress should always add a / at the end
 of empty URLs (for example, without a / or without extension like .php,
 .asp, .html, ...).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20224>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list