From 8c937a54109162f00b074ee784c0221c2084a108 Mon Sep 17 00:00:00 2001 From: Guthrie McAfee Armstrong Date: Tue, 20 Dec 2022 10:30:52 -0500 Subject: [PATCH] nginx: add redirect from /donate (#162) Changes redirect destination for `/donate` and uses 302 instead of 301 to make future changes propagate faster. --- nginx/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 0c91e70..b1f338a 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -105,7 +105,7 @@ http { location /tuesday { return 302 https://pledge.wnyc.org/support/radiolab; } # Podcast Membership - location ~ ^/donate/? { return 301 $app_url/the-lab?$query_string; } + location ~ ^/donate/? { return 302 https://pledge.wnyc.org/support/radiolab?utm_medium=audio&utm_source=podcast-spot&utm_campaign=rl-cye-addgift; } location ~ ^/(insider|20|twenty)/?$ { return 301 $not_found; } location ~ ^/(join|membership|members|member)/?$ { return 301 $members; } location ~ ^/(lab|thelab)/?$ { return 301 $app_url/the-lab?$query_string; } @@ -384,4 +384,4 @@ http { location ~ /2006/sep/29/radiolab-exists-to-go-after-tough-topics { return 301 $episodes/91741-radiolab-exists-to-go-after-tough-topics; } location ~ /2006/jul/01/a-match-made-in-radio { return 301 $episodes/91740-a-match-made-in-radio; } } -} \ No newline at end of file +}