Le 03/12/23 à 14h54, Denis Bitouzé a écrit :
> Have you a specific setting in your Web server config file?
Let's forget about it: we've managed to configure our Nginx Web server
to make the URLs of the pages of our LaTeX Sphinx FAQ extension-free (if
a `.html` were added, there would be an immediate redirection to the
extension-free URL). Here is the Nginx setting we added:
--8<---------------cut here---------------start------------->8---
location / {
if ($request_uri ~ ^/(.*)\.html(\?|$)) {
return 302 /$1;
}
try_files $uri.html $uri $uri/ =404;
}
--8<---------------cut here---------------end--------------->8---
Thanks again.
--
Denis
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/87ttoygyyx.fsf%40example.com.