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) )