{"action":"created","issue":{"url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/896","labels_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/896/comments","events_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/896/events","html_url":"https://github.com/D-Programming-Language/dlang.org/pull/896","id":57030074,"number":896,"title":"move \"D Reference\" pages to /language/","user":{"login":"aG0aep6G","id":9287500,"avatar_url":"https://avatars.githubusercontent.com/u/9287500?v=3","gravatar_id":"","url":"https://api.github.com/users/aG0aep6G","html_url":"https://github.com/aG0aep6G","followers_url":"https://api.github.com/users/aG0aep6G/followers","following_url":"https://api.github.com/users/aG0aep6G/following{/other_user}","gists_url":"https://api.github.com/users/aG0aep6G/gists{/gist_id}","starred_url":"https://api.github.com/users/aG0aep6G/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aG0aep6G/subscriptions","organizations_url":"https://api.github.com/users/aG0aep6G/orgs","repos_url":"https://api.github.com/users/aG0aep6G/repos","events_url":"https://api.github.com/users/aG0aep6G/events{/privacy}","received_events_url":"https://api.github.com/users/aG0aep6G/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2015-02-09T13:27:20Z","updated_at":"2015-11-22T16:21:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/dlang.org/pulls/896","html_url":"https://github.com/D-Programming-Language/dlang.org/pull/896","diff_url":"https://github.com/D-Programming-Language/dlang.org/pull/896.diff","patch_url":"https://github.com/D-Programming-Language/dlang.org/pull/896.patch"},"body":"Adding redirects so that the old URLs stay functional.\r\n\r\nThis is mostly moving pages, creating redirects, and updating links.\r\nNon-bulk changes are:\r\n* dlang.org.ddoc: Changed GLINK2 to `$(ROOT)/language/*`. I'm assuming that\r\nGLINK2 is for links to /language/ pages only.\r\n* doc.ddoc: A bulk change on its own, but distinct from the others.\r\n* language/language.ddoc: New file used with /language/ pages.\r\n* posix.mak\r\n\r\n----\r\n\r\nI used HTML meta refresh for the redirects, because we use it already (e.g. appendices.html).\r\n\r\nThat technique has at least one major flaw: it loses the fragment/anchor/hash-thingy. E.g., http://dlang.org/appendices.html#copyright redirects to <http://dlang.org/dstyle.html>, losing the `#copyright` part.\r\n\r\nI'd rather use HTTP 301 redirects, but I don't know how to go about it.\r\nDo we have .htaccess and mod_rewrite?\r\nDo we have PHP and would MultiViews load `foo.html.php` when `foo.html` is requested?\r\n\r\n----\r\n\r\nAs a next step, I'm going to add a search box option for the language reference, when Google has indexed the new locations."},"comment":{"url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/comments/158775413","html_url":"https://github.com/D-Programming-Language/dlang.org/pull/896#issuecomment-158775413","issue_url":"https://api.github.com/repos/D-Programming-Language/dlang.org/issues/896","id":158775413,"user":{"login":"aG0aep6G","id":9287500,"avatar_url":"https://avatars.githubusercontent.com/u/9287500?v=3","gravatar_id":"","url":"https://api.github.com/users/aG0aep6G","html_url":"https://github.com/aG0aep6G","followers_url":"https://api.github.com/users/aG0aep6G/followers","following_url":"https://api.github.com/users/aG0aep6G/following{/other_user}","gists_url":"https://api.github.com/users/aG0aep6G/gists{/gist_id}","starred_url":"https://api.github.com/users/aG0aep6G/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aG0aep6G/subscriptions","organizations_url":"https://api.github.com/users/aG0aep6G/orgs","repos_url":"https://api.github.com/users/aG0aep6G/repos","events_url":"https://api.github.com/users/aG0aep6G/events{/privacy}","received_events_url":"https://api.github.com/users/aG0aep6G/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T16:21:47Z","updated_at":"2015-11-22T16:21:47Z","body":"Updated. Still going with the `/language/` URLs. If you guys prefer `/spec/` or `/reference/`, please agree on one.\r\n\r\nRegarding versioned variants of the spec/reference: I think `/lex.html` should be a legacy redirect to `language/lex.html` (as with this PR), and `/language/lex.html` should be a copy/alias of the newest versioned URL (but not a redirect). That scheme could be done on top of this PR."}}