bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#43000: [Web pages] Proposed changes to tour/index.html


From: Therese Godefroy
Subject: bug#43000: [Web pages] Proposed changes to tour/index.html
Date: Mon, 7 Sep 2020 17:07:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

Hello Stefan,

Le 07/09/2020 à 05:13, Stefan Kangas a écrit :
[...]
> Making the links absolute has the unfortunate side-effect that it
> becomes harder to test the site locally during development, right?
> I'd hope that there is some way to avoid that.

The only way I know of is to mount the emacs directory at the root of a
local web server. It's pretty convenient, in fact. But of course you
won't do all the fancy things that the gnu server does.

> I see that there is a 302 (temporary) redirect here:
> 
> $ curl https://www.gnu.org/software/emacs/index.html
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a
> href="https://www.gnu.org/savannah-checkouts/gnu/emacs/emacs.html";>here</a>.</p>
> <hr>
> <address>Apache/2.4.7 Server at www.gnu.org Port 443</address>
> </body></html>
> 
> Do you know if this is expected?

I think this is expected, because you get it every time the index is
rewritten to another file. For instance, you get a 302 with gsrc
(index.html is rewritten to gsrc.html) but not with barcode (index.html
is a real file).

There are 2 sorts of rewrite directives:

* Some are in the Apache config. You and I can't change them (unless you
are a sysadmin). One of the things they do is rewrite
/software/emacs/emacs.html to /savannah-checkouts/gnu/emacs/emacs.html:

    RewriteCond /var/www/savannah-checkouts/gnu/$1 -d
    RewriteRule ^/software/([^/]+)(.*)$ /savannah-checkouts/gnu/$1$2

* Others are generated from the .symlinks files, which webmasters and
package maintainers can edit. Emacs has at least one:

    https://www.gnu.org/software/emacs/.symlinks

Here is the first line:

    emacs.html index.html

It is used to generate an entry in a rewrite map which is processed by a
series of directives. The last one ends with [R,L], explaining the 302.

Best,
Thérèse





reply via email to

[Prev in Thread] Current Thread [Next in Thread]