]> git.donarmstrong.com Git - lilypond.git/commitdiff
issue 2212: add main doc/ redirects to .htaccess
authorFederico Bruni <fede@inventati.org>
Mon, 18 Apr 2016 11:55:25 +0000 (13:55 +0200)
committerFederico Bruni <fede@inventati.org>
Tue, 19 Apr 2016 16:09:41 +0000 (18:09 +0200)
Documentation/web/server/lilypond.org.htaccess

index 29d90284118dd52942e03bcb5d46b69c0ee219b9..9060d0709a207f6b810c251b1781405e5757f437 100644 (file)
@@ -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