Skip to content

Commit

Permalink
Merge pull request #206 from fecgov/feature/4052-redirect-stat-summar…
Browse files Browse the repository at this point in the history
…y-files

redirect transition campaign finance statistical summary files
  • Loading branch information
patphongs authored Nov 23, 2020
2 parents 63419e9 + 29abcdf commit c1c2f23
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions redirects-transition.conf
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,22 @@ rewrite "^/press/summaries/([0-9]{4})/ElectionCycle/([0-9]{1,2})m_PAC.shtml" htt
rewrite "^/press/summaries/([0-9]{4})/ElectionCycle/([0-9]{1,2})m_IE_EC.shtml" https://www.fec.gov/campaign-finance-data/communication-filings-data-summary-tables/?year=$1&segment=$2 redirect;
rewrite "^/press/summaries/([0-9]{4})/ElectionCycle/([0-9]{1,2})m_IE.shtml" https://www.fec.gov/campaign-finance-data/communication-filings-data-summary-tables/?year=$1&segment=$2 redirect;

# /press/summaries/ pdf and xls files broader redirects
rewrite "^/press/summaries/([0-9]{4})/tables/congressional/(.*).pdf" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/congressional/$2.pdf redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/presidential/(.*).pdf" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/presidential/$2.pdf redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/party/(.*).pdf" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/party/$2.pdf redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/pac/(.*).pdf" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/pac/$2.pdf redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/ie/(.*).pdf" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/ie/$2.pdf redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/ec/(.*).pdf" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/ec/$2.pdf redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/cc/(.*).pdf" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/cc/$2.pdf redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/congressional/(.*).xlsx" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/congressional/$2.xlsx redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/presidential/(.*).xlsx" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/presidential/$2.xlsx redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/party/(.*).xlsx" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/party/$2.xlsx redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/pac/(.*).xlsx" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/pac/$2.xlsx redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/ie/(.*).xlsx" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/ie/$2.xlsx redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/ec/(.*).xlsx" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/ec/$2.xlsx redirect;
rewrite "^/press/summaries/([0-9]{4})/tables/cc/(.*).xlsx" https://www.fec.gov/resources/campaign-finance-statistics/$1/tables/cc/$2.xlsx redirect;

# /pubrec/ broader redirects
rewrite ^/pubrec/cfsdd/(.*) https://www.fec.gov/introduction-campaign-finance/how-to-research-public-records/combined-federalstate-disclosure-and-election-directory/ redirect;
rewrite ^/pubrec/fe2020/(.*) https://www.fec.gov/introduction-campaign-finance/election-and-voting-information/ redirect;
Expand Down

0 comments on commit c1c2f23

Please sign in to comment.