WordPress / Learn

WordPress.org Learn - The canonical source for the code and content behind https://learn.WordPress.org
241 stars 87 forks source link

Redirects for old content #2496

Open adamwoodnz opened 1 month ago

adamwoodnz commented 1 month ago

Setup redirects for old content (eg. tutorials) to more recent content. Follow a similar approach to what we do for the block editor handbook in Dev Resources. Should be probably live at https://github.com/WordPress/Learn/tree/trunk/wp-content/plugins/wporg-learn/inc/redirects.php

kathrynwp commented 1 month ago

Thanks for getting the ball rolling with this. Learn content creators are preparing a list of redirect URLs for old tutorials and lessons which are being retired. I'll link up the spreadsheet here when it's ready.

adamwoodnz commented 2 weeks ago

Noting that for posts that we don't migrate, we have the option of adding noindex to exclude the content from external and internal search, but remain discoverable by direct link. We have another issue https://github.com/WordPress/Learn/issues/2585 for this.