revert using 302 redirects
This commit is contained in:
parent
9f320e3f53
commit
c678a6c0da
|
@ -319,9 +319,9 @@ class Apache2Backend(ServiceController):
|
||||||
for redirect in directives.get('redirect', []):
|
for redirect in directives.get('redirect', []):
|
||||||
location, target = redirect.split()
|
location, target = redirect.split()
|
||||||
if re.match(r'^.*[\^\*\$\?\)]+.*$', redirect):
|
if re.match(r'^.*[\^\*\$\?\)]+.*$', redirect):
|
||||||
redirect = "RedirectMatch 301 %s %s" % (location, target)
|
redirect = "RedirectMatch %s %s" % (location, target)
|
||||||
else:
|
else:
|
||||||
redirect = "Redirect 301 %s %s" % (location, target)
|
redirect = "Redirect %s %s" % (location, target)
|
||||||
redirects.append(
|
redirects.append(
|
||||||
(location, redirect)
|
(location, redirect)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue