From 08ca45a1cc78cfba3e82bda17466b999814cf73a Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Tue, 6 Aug 2019 08:47:45 +0100 Subject: [PATCH] Update htaccess to redirect all old tune URLs to the new places. --- Library/htaccess | 2 ++ Morris/htaccess | 2 ++ Session/htaccess | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 Library/htaccess create mode 100644 Morris/htaccess diff --git a/Library/htaccess b/Library/htaccess new file mode 100644 index 0000000..dc21164 --- /dev/null +++ b/Library/htaccess @@ -0,0 +1,2 @@ +RedirectMatch permanent "/Library(.*)/([A-Z].*)\.html$" "/tunes$1/$2/index.html" +RedirectMatch permanent "/Library(.*)/learner-([A-Z].*)\.html$" "/tunes$1/$2/learner.html" diff --git a/Morris/htaccess b/Morris/htaccess new file mode 100644 index 0000000..7485571 --- /dev/null +++ b/Morris/htaccess @@ -0,0 +1,2 @@ +RedirectMatch permanent "/Morris(.*)/([A-Z].*)\.html$" "/tunes$1/$2/index.html" +RedirectMatch permanent "/Morris(.*)/learner-([A-Z].*)\.html$" "/tunes$1/$2/learner.html" diff --git a/Session/htaccess b/Session/htaccess index d0caba0..60d3696 100644 --- a/Session/htaccess +++ b/Session/htaccess @@ -1 +1,3 @@ -RedirectMatch permanent "(.*)/MazurkaAvignon\.html$" "tunes/MazurkaAuvergne/index.html" +RedirectMatch permanent "/Session(.*)/MazurkaAvignon\.html$" "/tunes$1/MazurkaAuvergne/index.html" +RedirectMatch permanent "/Session(.*)/([A-Z].*)\.html$" "/tunes$1/$2/index.html" +RedirectMatch permanent "/Session(.*)/learner-([A-Z].*)\.html$" "/tunes$1/$2/learner.html"