Skip to content

Commit

Permalink
nginx: add redirect from /donate (#162)
Browse files Browse the repository at this point in the history
Changes redirect destination for `/donate` and uses 302 instead of 301 to make future changes propagate faster.
  • Loading branch information
gmarmstrong authored Dec 20, 2022
1 parent f02408e commit 8c937a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down Expand Up @@ -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; }
}
}
}

0 comments on commit 8c937a5

Please sign in to comment.