{"action":"created","issue":{"url":"https://api.github.com/repos/varnishcache/homepage/issues/9","repository_url":"https://api.github.com/repos/varnishcache/homepage","labels_url":"https://api.github.com/repos/varnishcache/homepage/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/varnishcache/homepage/issues/9/comments","events_url":"https://api.github.com/repos/varnishcache/homepage/issues/9/events","html_url":"https://github.com/varnishcache/homepage/issues/9","id":150462565,"number":9,"title":"Broken links need to be fixed. 404s make our users unhappy.","user":{"login":"huayra","id":332124,"avatar_url":"https://avatars.githubusercontent.com/u/332124?v=3","gravatar_id":"","url":"https://api.github.com/users/huayra","html_url":"https://github.com/huayra","followers_url":"https://api.github.com/users/huayra/followers","following_url":"https://api.github.com/users/huayra/following{/other_user}","gists_url":"https://api.github.com/users/huayra/gists{/gist_id}","starred_url":"https://api.github.com/users/huayra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huayra/subscriptions","organizations_url":"https://api.github.com/users/huayra/orgs","repos_url":"https://api.github.com/users/huayra/repos","events_url":"https://api.github.com/users/huayra/events{/privacy}","received_events_url":"https://api.github.com/users/huayra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-22T20:20:51Z","updated_at":"2016-04-25T06:01:30Z","closed_at":null,"body":"There is a huge number of broken links currently in varnish-cache.org and many users have asked for us to bring those back. Google has also noticed a rather high rise of 404s and has advised we fix this.\r\n\r\nIn the previous site, which now has its home on <http://old.varnish-cache.org/> we had a [a couple of thousand links](https://github.com/varnishcache/homepage/files/232327/urllist_2016-04-12.txt) as of 2016-04-12, the day before the move to the new site. \r\n\r\nOn the new site we have a few hundred links, so it is obvious that quite a few of these links are returning 404 to our users. Some of these URLs like everything going to /forum will be made available on a static copy with the corresponding redirect, just like what we have with the Trac Wiki . Others will be gone for good.\r\n\r\nIn the new site we have removed vmod/ and utility/ any future changes like the one proposed in #4 will not be problematic. So we need to redirect traffic for the most obvious ones.\r\n\r\n**Explanation**\r\nI'll write pseudo-code so you can turn it into beautiful Varnish regexp, based on the following logic:\r\n- & means all the variants that need to point to a resource\r\n- > means the resource all variants should point at\r\n- () which mark exceptions\r\n\r\n**Redirects within the site**\r\nLinks within the site that can be redirected directly and even wildcarded:\r\n- vmod & vmod/* & vmods?* > vmods/\r\n- utility & utility/* & utilities/ & utilities?* > extras/ \r\n- twitter & twitter?* > support/\r\n- project & project/* > /\r\n- unstable-releases/ & content/varnish-cache-* > releases/ (except for 403 and 412 below)\r\n\r\nSpecific links within the site that need to be mapped individually:\r\n- content/varnish-cache-403 > releases/rel4.0.3.html\r\n- content/varnish-cache-412 > releases/rel4.1.2.html\r\n- installation/freebsd > releases/install_freebsd.html\r\n- installation/ubuntu > releases/install_ubuntu.html\r\n- installation/debian > releases/install_debian.html\r\n- installation/redhat > releases/install_redhat.html\r\n\r\n**Redirects to links outside www. but within the domain**\r\n**Planet**\r\nHere are a few links that need to be redirected outside of the site:\r\n- planet/ & planet/?* > https://planet.varnish-cache.org\r\n\r\n**From www. to old.**\r\nredirecting to from www. to old. on the following links:\r\n- https://www.varnish-cache.org/vug10 > https://old.varnish-cache.org/vug10\r\n- https://www.varnish-cache.org/vug9 > https://old.varnish-cache.org/vug9\r\n- https://www.varnish-cache.org/vug8 > https://old.varnish-cache.org/vug8\r\n- https://www.varnish-cache.org/vug7 > https://old.varnish-cache.org/vug7\r\n- https://www.varnish-cache.org/vug6 > https://old.varnish-cache.org/vug6\r\n- https://www.varnish-cache.org/vug6-report > https://old.varnish-cache.org/vug6-report\r\n- https://www.varnish-cache.org/vug5 > https://old.varnish-cache.org/vug5\r\n- https://www.varnish-cache.org/vug5-report > https://old.varnish-cache.org/vug5-report\r\n\r\n**Forum**\r\n- forum/ & forum/1 > https://old.varnish-cache.org/forum/1\r\n- forum/* > https://old.varnish-cache.org/forum/*\r\n\r\nAll links pointing to the forum should be the respective resource in old. so that the content is available now. once we get the static copy of it we can change the redirect to \"ForumArchive\" internally in the site and kill the redirect to old.\r\n\r\n**Static files**\r\nAn extensive list with the content linked from different pages (slides from VUGs, vcl examples) within the site and that is currently available in old. and with the same list as it should be in www. is available in this files (https links):\r\n[urllist_w-www_2016-04-22.txt](https://github.com/varnishcache/homepage/files/232497/urllist_w-www_2016-04-22.txt)\r\n[urllist_w-old_2016-04-22.txt](https://github.com/varnishcache/homepage/files/232498/urllist_w-old_2016-04-22.txt)\r\n\r\n**Other improvements:**\r\nPreviously a link to a resource in the Wiki would work regardless of whether you typed wiki/ or trac/ or trac/wiki/ and this does not woirk in the new site since wiki/ gives a 404 and trac/ shows nothing, leaving trac/wiki as the only real option. At the very least we should make the following:\r\n\r\n- wiki/ & wiki/* & trac/ & trac/* > trac/wiki/\r\n\r\nMaking sure that we also redirect the * so that i.e. this (and any other wiki resource) works: wiki/VCLExamples & trac/VCLExamples > trac/wiki/VCLExamples "},"comment":{"url":"https://api.github.com/repos/varnishcache/homepage/issues/comments/214148740","html_url":"https://github.com/varnishcache/homepage/issues/9#issuecomment-214148740","issue_url":"https://api.github.com/repos/varnishcache/homepage/issues/9","id":214148740,"user":{"login":"bsdphk","id":567236,"avatar_url":"https://avatars.githubusercontent.com/u/567236?v=3","gravatar_id":"","url":"https://api.github.com/users/bsdphk","html_url":"https://github.com/bsdphk","followers_url":"https://api.github.com/users/bsdphk/followers","following_url":"https://api.github.com/users/bsdphk/following{/other_user}","gists_url":"https://api.github.com/users/bsdphk/gists{/gist_id}","starred_url":"https://api.github.com/users/bsdphk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsdphk/subscriptions","organizations_url":"https://api.github.com/users/bsdphk/orgs","repos_url":"https://api.github.com/users/bsdphk/repos","events_url":"https://api.github.com/users/bsdphk/events{/privacy}","received_events_url":"https://api.github.com/users/bsdphk/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T06:01:30Z","updated_at":"2016-04-25T06:01:30Z","body":"Yes, I know.  I don't think we'll be doing anything about those."}}