From 60756147426ada2471970d9ae0cfb9d254c9949e Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Mon, 1 Sep 2014 12:46:16 +0200 Subject: [PATCH] Use redirectmatch to redirect old install guide pages to their new location Change-Id: Iece7446d5daea84d4472add8f3d8e836fa058e2c --- www/static/.htaccess | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/www/static/.htaccess b/www/static/.htaccess index 6d3b1d4e08..3120685797 100644 --- a/www/static/.htaccess +++ b/www/static/.htaccess @@ -96,15 +96,8 @@ redirect 301 /trunk/training-guide/ /training-guides/ redirect 301 /trunk/training-guides/ /training-guides/ # Redirect old install guide pages to their new location -redirect 301 /trunk/install-guide/install/apt/content/object-storage-post-install.html /trunk/install-guide/install/apt/content/verify-object-storage-installation.html -redirect 301 /trunk/install-guide/install/apt-debian/content/object-storage-post-install.html /trunk/install-guide/install/apt-debian/content/verify-object-storage-installation.html -redirect 301 /trunk/install-guide/install/zypper/content/object-storage-post-install.html /trunk/install-guide/install/zypper/content/verify-object-storage-installation.html -redirect 301 /trunk/install-guide/install/yum/content/object-storage-post-install.html /trunk/install-guide/install/yum/content/verify-object-storage-installation.html - -redirect 301 /trunk/install-guide/install/apt/content/ch_basics.html /trunk/install-guide/install/apt/content/ch_basic_environment.html -redirect 301 /trunk/install-guide/install/apt-debian/content/ch_basics.html /trunk/install-guide/install/apt-debian/content/ch_basic_environment.html -redirect 301 /trunk/install-guide/install/zypper/content/ch_basics.html /trunk/install-guide/install/zypper/content/ch_basic_environment.html -redirect 301 /trunk/install-guide/install/yum/content/ch_basics.html /trunk/install-guide/install/yum/content/ch_basic_environment.html +redirectmatch 301 /trunk/install-guide/install/(apt-debian|apt|zypper|yum)/content/object-storage-post-install.html /trunk/install-guide/install/$1/content/verify-object-storage-installation.html +redirectmatch 301 /trunk/install-guide/install/(apt-debian|apt|zypper|yum)/content/ch_basics.html /trunk/install-guide/install/$1/content/ch_basic_environment.html # Redirect O'Reilly Operations Guide PDF to trunk version redirect 301 /trunk/openstack-ops/oreilly-openstack-ops-guide.pdf /openstack-ops/openstack-ops-manual.pdf