From 27802f81f4b0ebb7eeee385e5c8071b10ddd4683 Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Wed, 5 Mar 2014 23:38:14 -0500 Subject: [PATCH] correctly handle doc urls containing "//" A doc generation bug resulted in Google indexing links containing "//", which cause problems with linked content (images/css/etc). This rule generates a 301 redirect for these links. Change-Id: Iff1e73e0f3db80c11a56a08abd67dd6c050c1aa1 Partial-bug: 1288513 --- www/.htaccess | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/.htaccess b/www/.htaccess index 0e0efeea51..8360089a2e 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -98,3 +98,10 @@ redirect 301 /trunk/openstack-training/ /training-guides/ redirect 301 /trunk/training-guide/ /training-guides/ redirect 301 /trunk/training-guides/ /training-guides/ +# A doc generation bug resulted in Google indexing links containing "//", which cause +# problems with linked content (images/css/etc). This rule generates a 301 redirect +# for these links. +# +# details: https://bugs.launchpad.net/openstack-manuals/+bug/1288513 +redirectmatch 301 (.*)//(.*) $1/$2 +