fix grouping in regex for redirecting /releases

The target for the redirectmatch rule uses a group but the pattern
does not capture the group.

Change-Id: Id0897c6e7d00f31e3d4217d96b9af0a0de34afd5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-08-25 16:58:26 -04:00
parent 413f6686f6
commit d2dabe2945

View File

@ -33,7 +33,7 @@ redirectmatch 301 (.*)//(.*) $1/$2
redirect 301 /networking-guide/ /ocata/networking-guide/
# Redirect old releases content to new location
redirectmatch 301 "^/releases.*$" http://releases.openstack.org$1
redirectmatch 301 "^/releases(.*)$" http://releases.openstack.org$1
# redirect all kuryr sub-repositories appropriately
redirectmatch 301 ^/developer/kuryr-(kubernetes|libnetwork|tempest-plugin)/(.*)$ /kuryr-$1/latest/$2