Skip to content

Commit d388daa

Browse files
authored
Merge pull request #449 from will-moore/study_urls_not_redirected
Only redirect specific /study/idr0083/figure urls. Ignore other /stud…
2 parents f7e8bb9 + 16fd702 commit d388daa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ansible/group_vars/proxy-hosts.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,13 @@ nginx_proxy_redirect_map:
239239
dest: /webclient/img_detail/9822152/?dataset=10201&x=80560&y=77440&zm=66&c=1|495:9204$808080&m=g
240240

241241
nginx_proxy_redirect_map_locations:
242+
# These are the only /study/ URLs that should be redirected
243+
- location: "= /study/idr0083/figure/4i"
244+
code: 301
245+
- location: "= /study/idr0083/figure/4r"
246+
code: 301
242247
# TODO: change to 301 when we're happy
243-
- location: "~ ^/(mito|tara|pgpc|study)($|/)"
248+
- location: "~ ^/(mito|tara|pgpc)($|/)"
244249
code: 302
245250

246251
# "= /" has higher priority than "/" in the proxy config

0 commit comments

Comments
 (0)