From c678a6c0da15ebde0602a7af1ba0f01b227d9c8d Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Tue, 19 Jan 2016 12:08:45 +0000 Subject: [PATCH] revert using 302 redirects --- orchestra/contrib/websites/backends/apache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/contrib/websites/backends/apache.py b/orchestra/contrib/websites/backends/apache.py index 44361521..89dd2b55 100644 --- a/orchestra/contrib/websites/backends/apache.py +++ b/orchestra/contrib/websites/backends/apache.py @@ -319,9 +319,9 @@ class Apache2Backend(ServiceController): for redirect in directives.get('redirect', []): location, target = redirect.split() if re.match(r'^.*[\^\*\$\?\)]+.*$', redirect): - redirect = "RedirectMatch 301 %s %s" % (location, target) + redirect = "RedirectMatch %s %s" % (location, target) else: - redirect = "Redirect 301 %s %s" % (location, target) + redirect = "Redirect %s %s" % (location, target) redirects.append( (location, redirect) )