Redirect old URLs, cool URLs don't change
Update: I see that some URLs do have a redirect already. So the ticket is a different one: Fix redirects that are missing.
Suggestion: Use something like google analytics to analyse what URLs generate a 404 after the website-move to find the pages most used and fix the redirects for those.
Example of a redirect that works: https://www.hotosm.org/updates/2018-05-18_hot_hosted_a_mapathon_in_the_state_university_of_semarang_1
My old RSS feed (see https://github.com/hotosm/hotosm-website/issues/338) links to URLs that dont work anymore.
Since
Cool URIs don't change (https://www.w3.org/Provider/Style/URI)
… it where best to redirect the old URLs.
For jekyll there are plugins that introduce "redirect_from" and "redirect_to" for the front matter. But for a general move of content a redirect rule on the server would be better, probably.
Old URLs:
- https://www.hotosm.org/updates/2018-06-08_uniquemappersteam_collaboration_with_transparent_earth_nigeria_ltd
- New: https://www.hotosm.org/updates/uniquemappersteam-collaboration-with-transparent-earth-nigeria-ltd/
- https://www.hotosm.org/updates/2018-05-26_experimenting_with_analytics_for_health2
Thanks @tordans for the comments and flagging that some URLs don't have redirects yet. The biggest issue I've seen is how the old URLs were being generated didn't fully translate over to our new format and so some still fail -- for the most part we've been trying to use the permalink item to keep the old URL instead of always relying on redirect_from. Totally agree with Cool URLs, and ones that are nicely structured and human readable. For some of the new pages and content we've tried to shift towards that so they can be more cool going forward. 🆒
Suggestion: Use something like google analytics to analyse what URLs generate a 404 after the website-move to find the pages most used and fix the redirects for those.
👍
can i help with this