From: Therese Godefroy <thg@gnu.org>
To: 43000@debbugs.gnu.org
Subject: bug#43000: [Web pages] Proposed changes to tour/index.html
Date: Mon, 7 Sep 2020 17:07:35 +0200 [thread overview]
Message-ID: <9642974d-eb2e-ef5b-ad60-3ce3e4286084@gnu.org> (raw)
In-Reply-To: <CADwFkmkgMFAmRpo0bAqXWQS-VO7kRFm=sN-7GvwgDmz2d1OXRQ@mail.gmail.com>
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
next prev parent reply other threads:[~2020-09-07 15:07 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-23 19:24 bug#43000: [Web pages] Proposed changes to tour/index.html Thérèse Godefroy
2020-08-24 2:13 ` Stefan Kangas
2020-08-24 12:32 ` Thérèse Godefroy
2020-08-26 21:58 ` Stefan Kangas
2020-08-27 12:26 ` Thérèse Godefroy
2020-09-01 14:36 ` Stefan Kangas
2020-09-01 18:43 ` Thérèse Godefroy
2020-09-06 3:47 ` Stefan Kangas
2020-09-06 15:48 ` Therese Godefroy
2020-09-07 3:13 ` Stefan Kangas
2020-09-07 15:07 ` Therese Godefroy [this message]
2020-10-24 12:37 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9642974d-eb2e-ef5b-ad60-3ce3e4286084@gnu.org \
--to=thg@gnu.org \
--cc=43000@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.