On 11/10/2022 12:37, Bastien wrote:
Max Nikulin writes:
Bastien, I have not tried full configuration, but after a quick check
I believe that it is a reasonable suggestion. It prevents 301
redirection from valid URLs like
https://orgmode.org/manual/Links-in-HTML-export.html
to
https://orgmode.org/manual/HTML-Export.html
I don't think the "/" is needed at the beginning of, say,
"HTML-Export.html" to disambiguate.
I completely reviewed the nginx configuration again and updated it
on Worg: https://git.sr.ht/~bzg/worg/commit/601ebf48
Bastien, unfortunately you have not fix the problem. Slash before
HTML-export\.html is necessary. The page
https://orgmode.org/manual/HTML-Export.html
has a valid link to
https://orgmode.org/manual/Links-in-HTML-export.html
that is still inaccessible due to the active the rewrite rule
rewrite LaTeX-export\.html LaTeX-Export.html permanent;
curl -I https://orgmode.org/manual/Links-in-HTML-export.html
HTTP/1.1 301 Moved Permanently
Server: nginx/1.14.2
Date: Tue, 11 Oct 2022 06:55:28 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: HTML-Export.html
There should not be such issue for
rewrite /LaTeX-export\.html LaTeX-Export.html permanent;