From db7e97a335cb827e2064110543b9d88000420588 Mon Sep 17 00:00:00 2001 From: Federico Bruni Date: Mon, 18 Apr 2016 13:55:25 +0200 Subject: [PATCH] issue 2212: add main doc/ redirects to .htaccess --- Documentation/web/server/lilypond.org.htaccess | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Documentation/web/server/lilypond.org.htaccess b/Documentation/web/server/lilypond.org.htaccess index 29d9028411..9060d0709a 100644 --- a/Documentation/web/server/lilypond.org.htaccess +++ b/Documentation/web/server/lilypond.org.htaccess @@ -49,9 +49,12 @@ RedirectMatch ^/stable /doc/stable # the new website has a dedicated page for development. #RedirectMatch ^/development /doc/development -#old# default doc dir -RedirectMatch ^/doc/*$ /doc/v2.18 -# make attempt at `latest' symlink avoid ^v catch-all doc fix rule below +# Main doc URL redirects +RedirectMatch ^/doc/?$ /manuals +RedirectMatch ^/doc/stable/?$ /manuals +RedirectMatch ^/doc/development/?$ /development + +# Allow to use deep links to latest stable or development docs RedirectMatch ^/doc//*latest/*(.*)$ /doc/v2.19/$1 RedirectMatch ^/doc//*development/*(.*)$ /doc/v2.19/$1 RedirectMatch ^/doc//*stable/*(.*)$ /doc/v2.18/$1 -- 2.39.2