From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iMctMq/hwmKvXwEAbAwnHQ (envelope-from ) for ; Mon, 04 Jul 2022 14:48:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OAYDMq/hwmL/fgEAauVa8A (envelope-from ) for ; Mon, 04 Jul 2022 14:48:47 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 71F542E226 for ; Mon, 4 Jul 2022 14:48:47 +0200 (CEST) Received: from localhost ([::1]:40946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8LVO-0006tS-LB for larch@yhetil.org; Mon, 04 Jul 2022 08:48:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8LKk-0003xT-TV for emacs-orgmode@gnu.org; Mon, 04 Jul 2022 08:37:48 -0400 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:45041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8LKi-0003GM-JP for emacs-orgmode@gnu.org; Mon, 04 Jul 2022 08:37:46 -0400 Received: by mail-pf1-x42d.google.com with SMTP id 65so8847741pfw.11 for ; Mon, 04 Jul 2022 05:37:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=J63BxyLpqScTD3cMnw/WFrKrbWh1JA9VM+WLxqJjYhE=; b=UUyvlk6iCpbl1TOQ+5tO7JSLWGyr1Z+JI+dL+pAJoZTr2Qt8zZpcl0TSX/KzABMyU8 jtFpdo5bdNCghjpvAD8Hj3x8IO6m876vfEUC5XvE3xayeSuGOp4o/Eg4JwL1byuD0Ewz 6znfac4Q/Xx4er3fw2tYwr9LEoDa0LLTcmr/ZkSW6dYyBAIHE7d3Ge6MzooGFfP9i7+0 8lhi70VZmdzM0OC097yLhoxD7LU/ryEOd+LVGT0B0XejbbcB6OjtbjoTIu6W6zp6Wlk6 j0Oyp+zGvPsT1gFHHZGx5OMdBNf/rWqFMI0wbDNSjej2kd8bcPDaYfGBCrIHsBxZDg5B h7lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=J63BxyLpqScTD3cMnw/WFrKrbWh1JA9VM+WLxqJjYhE=; b=BZ1Zl87U+mcldxC7Jeb9Iu8BWK56qhW+PK6h9qk+ojtX7nj6YDsjqTNBzBFUcePnSx 3C8JOGJuIatmtM7yjxI8Tyy+8Nb7ZcwE/CrkNzONZXGAynoH2F1exAf6THsdLglOhZab 84XhR72paaY457fTRTZnOesK83+bjG+/fKrqP+mU9lLJeKyzI0sJV0J6oi49dGmRa4Do xnjEtONExCS50oviozoElOnGV8PX03Nid6UT4/V7M42u77e6xKF2EwbquGQd5ka6KBC1 DY3pG+WR+ljvdp0Nm2c8g1uE/nn7zZjQc9iWs13Pe6Hu319GRCL17cnjgGmDvgjB7+hr rVXg== X-Gm-Message-State: AJIora8psKjIcsU3K8978Cf3aDoVwO+zpIItYkXUPhtko5zOcGcQtJ82 bl1dJUHIe+7l8/CsGZ40ahEAnzsXnbpSDg== X-Google-Smtp-Source: AGRyM1tg/+Mwcr6oipcE9Su/giOiFTNfxvuzb8sCM+6NHueCJhucOcOG5VAW/urMLH7iHPJSKmssNw== X-Received: by 2002:a63:751b:0:b0:40c:9c39:c890 with SMTP id q27-20020a63751b000000b0040c9c39c890mr24863440pgc.302.1656938261971; Mon, 04 Jul 2022 05:37:41 -0700 (PDT) Received: from dingbat (2001-44b8-31f2-bb00-5239-7d5d-ebbc-1118.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:5239:7d5d:ebbc:1118]) by smtp.gmail.com with ESMTPSA id p22-20020a1709027ed600b001690d398401sm21344681plb.88.2022.07.04.05.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 05:37:41 -0700 (PDT) References: <878rpah0tx.fsf@localhost> <87wncu8iuw.fsf@gmail.com> <87wncufg6l.fsf@localhost> <87o7y598cz.fsf@gmail.com> <875ykdnkmk.fsf@localhost> User-agent: mu4e 1.8.3; emacs 29.0.50 From: Tim Cross To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: [BUG] The documentation webserver gives 404s [9.5.4 (release_9.5.4-3-g6dc785 @ )] Date: Mon, 04 Jul 2022 22:27:17 +1000 In-reply-to: <875ykdnkmk.fsf@localhost> Message-ID: <87bku59hpp.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656938927; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=J63BxyLpqScTD3cMnw/WFrKrbWh1JA9VM+WLxqJjYhE=; b=pseRE6rb+CQVPjo3R2dL0HWNAj+MFRzbmq03dhrsYlpRaMlJhkLTsxFeqUhkg1CHk0Atmo LzOqd/V57sn1yEQh31xxg43UU+lKsqwFwfh3ATY4gAIRp7RnY4sVSFPMFQOzhE8P/8//jo w/X2KnR+NIdlH68Mg8bmGhCkbcYAtxfvPcvvD3P2EM4QfgZ8fK31+Vlh/KfepZIzcD01Cs 4CJM9X/Tbf2X/CbQsfWmi7Kgm8oUyiiGVom5STdRZYoYD53o2cSvjgvfKo2YV2OrJa3ilr TcebT2ZOkY38qAkJ7zOj8k6NTRu8r3+Xv9jP/yqS/4RzJCryOvXNQu0gWz01Xg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656938927; a=rsa-sha256; cv=none; b=tEM2232GownBwqqUnEWfbhDAxEDkChxBiCqYcE9C9ECf8LVDmaVg2peuD6Zk6jIDEjJNgS r+CACmU+o07bP0pco+JtQGyLvUsRRWHHqWmB82+JjRx43wdOKHyty825lwIS6jLMdAckit zNu9LnRIGBop8hAwlYVJvi2SuAjhigUyZYi5uKoiF4n7UA4z5Dq3LuYtT2/luPaLJBK1i/ m16W9hSjoU21sRru4vZwArkJ0ZCKLfK2eByK4vVesRLAa3KxmWC8wvh2tch0VKjSWUAqeS 6SrxD0D/6H93dOd5JQb0MKZKiM8oGTxpidCOeLqVdFNcujbG+K8I/X4geaMHUg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UUyvlk6i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=UUyvlk6i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 71F542E226 X-Spam-Score: -8.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: g3jiB1cjDvKQ Ihor Radchenko writes: > Tim Cross writes: > >> I do have an alternative suggestion which may help. Given that the >> 'broken' URLs are actually from external links to old documentation >> which has been removed, what we could do is create a more informative >> 404 page. Once users are on the 'real' site, the case issue does not >> exist. It is only a problem due to outdated URLs on external sites like >> stack overflow. Instead of just saying 404 Not Found, the page could say >> the requested URL was not found and is likely a link to old outdated doc >> documentation. The page could include a link to the main orgmode >> page. This would be a fairly simple 'fix' that would improve user >> experience to some degree. > > This sounds like a good idea. > I am not sure if it is feasible, but the 404 page could also provide > suggestions based on similar existing links. I have something like > https://list.orgmode.org/orgmode/83tu89b7pr.fsf@gnu.org/ in mind. > Sorry, I don't understand the relevance of that link (it seems to be to a discussion about GC size?). Yes, you should be able to use JS to examine the URL which failed and transform it by making the first character of each word in the url filename upper case. Essentially do what was proposed with the rewrite rules, but which wouldn't have the same performance hit as it would only be triggered when incorrect URLs were entered and wold run in the browser. The only downside is it wouldn't work with non JS based browsers (like eww). If the server had support for server side scripting (perl, ruby, etc) it could be done so that it would work with all browsers by doing the rendering server side.