[wp-trac] [WordPress Trac] #36355: Article URL redirects no longer working
WordPress Trac
noreply at wordpress.org
Mon Mar 28 15:20:41 UTC 2016
#36355: Article URL redirects no longer working
-----------------------------+-----------------------------
Reporter: archanamandhare | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.0
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
On multiple sites, we have started using article URLs with the post ID in
them. Historically, this has allowed WordPress to find the post and do a
301 redirect when the slug, date, or other parts of the URL path changed.
For example, Permalink -
%year%/%vertical%/%category%/%postname%-%post_id%/
All of these URLs should redirect us to this article:
http://variety.com/2016/tv/news/the-loud-house-premiere-date-video-
nickelodeon-1201740128/
http://variety.com/2015/tv-news/news/the-loud-house-premiere-date-video-
nickelodeon-1201740128/
http://variety.com/2015/tv-news/news/test-url-slug-1201740128/
http://variety.com/the-loud-house-premiere-date-video-
nickelodeon-1201740128/
http://variety.com/2016/the-loud-house-premiere-date-video-
nickelodeon-1201740128/
While the first 2 examples work correctly, the last 2 URLs land on 404
page inspite of correct %pagename%-%post_id% combination.
If we have Permalink - %year%/%vertical%/%category%/%postname%/
The last 2 structure work correctly and reach correct article page. For
example - http://hollywoodlife.com/2016/03/28/lip-sync-battle-the-walking-
dead-sasha-vs-maggie-video/
http://hollywoodlife.com/lip-sync-battle-the-walking-dead-sasha-vs-maggie-
video/
http://hollywoodlife.com/2013/lip-sync-battle-the-walking-dead-sasha-vs-
maggie-video/
Since we have a correct %postname%-%post_id% combination in the first
Permalink structure URL, we should be able to reach the correct article
page in the last 2 examples there too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36355>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list