From: Federico Bruni Date: Mon, 18 Apr 2016 11:55:25 +0000 (+0200) Subject: issue 2212: add main doc/ redirects to .htaccess X-Git-Tag: release/2.19.41-1~7^2~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=db7e97a335cb827e2064110543b9d88000420588;p=lilypond.git issue 2212: add main doc/ redirects to .htaccess --- 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