Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/backfill redirects #271

Merged
merged 5 commits into from
Jun 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion redirects-transition.conf
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ rewrite ^/finance/2008matching/edwards_docs_001.pdf https://www.fec.gov/resource
rewrite ^/finance/2008matching/kucinich_docs_001.pdf https://www.fec.gov/resources/cms-content/documents/kucinich_docs_001_2008.pdf redirect;
rewrite ^/finance/2008matching/nader_docs_001.pdf https://www.fec.gov/resources/cms-content/documents/nader_docs_001_2008.pdf redirect;

# finance/disclosure redirects
rewrite ^/finance/disclosure/adv-search.shtml https://www.fec.gov/data/ redirect;

# general/ redirects
rewrite ^/general/FederalElections2016.shtml https://www.fec.gov/introduction-campaign-finance/election-and-voting-information/ redirect;
rewrite ^/general/library.shtml https://www.fec.gov/introduction-campaign-finance/how-to-research-public-records/ redirect;
Expand Down Expand Up @@ -319,14 +322,37 @@ rewrite ^/info/hearings.shtml https://www.fec.gov/meetings/?tab=hearings redirec
rewrite ^/info/individuals.shtml https://www.fec.gov/introduction-campaign-finance/understanding-ways-support-federal-candidates/ redirect;
rewrite ^/info/LegislativeRecommendations1993.htm https://www.fec.gov/resources/cms-content/documents/legrec1993.pdf redirect;
rewrite ^/info/legrec.htm https://www.fec.gov/resources/cms-content/documents/legrec1997.pdf;
rewrite ^/info/limits_and_thresholds.shtml https://www.fec.gov/help-candidates-and-committees/ redirect;
rewrite ^/info/mission.shtml https://www.fec.gov/about/mission-and-history/ redirect;
rewrite ^/info/mis-sc.htm https://www.fec.gov/resources/record/1996/jan96.pdf#page=9 redirect;
rewrite ^/info/nprmintr.htm https://sers.fec.gov/fosers/showpdf.htm?docid=62698 redirect;
rewrite ^/info/outreach.shtml https://www.fec.gov/help-candidates-and-committees/trainings/ redirect;
rewrite ^/info/pacs.shtml https://www.fec.gov/help-candidates-and-committees/ redirect;
rewrite ^/info/parties.shtml https://www.fec.gov/help-candidates-and-committees/ redirect;
rewrite ^/info/plainwriting.shtml https://www.fec.gov/about/plain-language/ redirect;
rewrite ^/info/plainwriting041312.shtml https://www.fec.gov/about/plain-language/ redirect;
rewrite ^/info/plainwriting041313.shtml https://www.fec.gov/about/plain-language/ redirect;
rewrite ^/info/plainwriting071311.shtml https://www.fec.gov/about/plain-language/ redirect;
rewrite ^/info/plainwritingreport.shtml https://www.fec.gov/about/plain-language/ redirect;
rewrite ^/info/prim98.htm https://www.fec.gov/resources/record/1998/jan98.pdf redirect;
rewrite ^/info/primref.htm https://www.fec.gov/resources/record/1996/jan96.pdf redirect;
rewrite ^/info/publications.shtml https://www.fec.gov/help-candidates-and-committees/guides redirect;
rewrite ^/info/recent_conference_materials.shtml https://www.fec.gov/help-candidates-and-committees/trainings/ redirect;
rewrite ^/info/report_dates.shtml https://www.fec.gov/help-candidates-and-committees/dates-and-deadlines/ redirect;
rewrite ^/info/report_dates_midterm6.shtml https://www.fec.gov/help-candidates-and-committees/dates-and-deadlines/ redirect;
rewrite ^/info/report_dates_midterm.shtml https://www.fec.gov/help-candidates-and-committees/dates-and-deadlines/ redirect;
rewrite ^/info/report_dates_non.shtml https://www.fec.gov/help-candidates-and-committees/dates-and-deadlines/ redirect;
rewrite ^/info/report_dates_non7.shtml https://www.fec.gov/help-candidates-and-committees/dates-and-deadlines/ redirect;
rewrite ^/info/sbrefa.htm https://www.fec.gov/help-candidates-and-committees/guides/ redirect;
rewrite ^/info/sd-w.htm https://www.fec.gov/resources/record/1996/jan96.pdf redirect;
rewrite ^/info/subj98.htm https://www.fec.gov/legal-resources/court-cases/ redirect;
rewrite ^/info/TimelyTipsArchive.shtml https://www.fec.gov/updates/?update_type=tips-for-treasurers redirect;
rewrite ^/info/TimelyTipsArchive2006.shtml https://www.fec.gov/updates/?update_type=tips-for-treasurers redirect;
rewrite ^/info/TipsforTreasurers.shtml https://www.fec.gov/updates/?update_type=tips-for-treasurers redirect;
rewrite ^/info/tips4treasurers.xml https://www.fec.gov/updates/?update_type=tips-for-treasurers redirect;
rewrite ^/info/toolkit.shtml https://www.fec.gov/help-candidates-and-committees/ redirect;
rewrite ^/info/treas.htm https://www.fec.gov/updates/committee-treasurers-2017-record/ redirect;
rewrite ^/info/tresur.htm https://www.fec.gov/updates/committee-treasurers-2017-record/ redirect;

# info/articles/ redirects
rewrite ^/info/articles/debtretirement09.pdf https://www.fec.gov/help-candidates-and-committees/handling-loans-debts-and-advances/ redirect;
Expand Down Expand Up @@ -953,6 +979,7 @@ rewrite ^/pages/brochures/pubfund.shtml https://www.fec.gov/introduction-campaig
rewrite ^/pages/brochures/pubfund_limits_2016.shtml https://www.fec.gov/help-candidates-and-committees/understanding-public-funding-presidential-elections/presidential-spending-limits-2016/ redirect;
rewrite ^/pages/brochures/public_funding_brochure.pdf https://www.fec.gov/introduction-campaign-finance/understanding-ways-support-federal-candidates/presidential-elections/public-funding-presidential-elections/ redirect;
rewrite ^/pages/brochures/public_funding_brochure2012.pdf https://www.fec.gov/introduction-campaign-finance/understanding-ways-support-federal-candidates/presidential-elections/public-funding-presidential-elections/ redirect;
rewrite ^/pages/brochures/rad_brochure.pdf https://www.fec.gov/resources/cms-content/documents/RAD_Review_Procedures_Feb2018.pdf redirect;
rewrite ^/pages/brochures/sale_and_use_brochure.pdf https://www.fec.gov/updates/sale-or-use-contributor-information/ redirect;
rewrite ^/pages/brochures/saleuse.shtml https://www.fec.gov/updates/sale-or-use-contributor-information/ redirect;
rewrite ^/pages/brochures/spec_notice_brochure.pdf https://www.fec.gov/help-candidates-and-committees/advertising-and-disclaimers/ redirect;
Expand Down Expand Up @@ -1083,13 +1110,26 @@ rewrite ^/pubrec/cfsdd/cfsdd.shtml https://www.fec.gov/introduction-campaign-fin
rewrite ^/pubrec/cfsdd/cfsded_000.pdf https://www.fec.gov/resources/cms-content/documents/cfsded.pdf redirect;

# rad/ redirects
rewrite ^/rad/index.shtml /rad/index.html redirect;
rewrite ^/rad/BitcoinFAQ.shtml https://www.fec.gov/help-candidates-and-committees/filing-reports/bitcoin-contributions/ redirect;
rewrite ^/rad/candidates/FEC-ReportsAnalysisDivision-CandidateCommittees.shtml https://www.fec.gov/help-candidates-and-committees/guides/?tab=candidates-and-their-authorized-committees redirect;
rewrite ^/rad/FEC-ReportsAnalysisDivision-Penalties.shtml https://www.fec.gov/legal-resources/enforcement/ redirect;
rewrite ^/rad/FederalElectionCommission-RAD-ElectronicFilingPasswords.shtml https://www.fec.gov/help-candidates-and-committees/filing-reports/electronic-filing/ redirect;
rewrite ^/rad/FederalElectionCommission-RAD-RespondingtoRFAIs.shtml https://www.fec.gov/help-candidates-and-committees/request-additional-information/ redirect;
rewrite ^/rad/index.shtml https://www.fec.gov/help-candidates-and-committees/ redirect;
rewrite ^/rad/index.html https://www.fec.gov/help-candidates-and-committees/ redirect;
rewrite ^/rad/JointFundraisingCommittees.shtml https://www.fec.gov/help-candidates-and-committees/making-disbursements/joint-fundraising-candidates-political-committees/ redirect;
rewrite ^/rad/other_filers/FederalElectionCommission-RAD-OtherFilers.shtml https://www.fec.gov/help-candidates-and-committees/guides/?tab=other-filers redirect;
rewrite ^/rad/parties/FederalElectionCommission-RAD-Parties.shtml https://www.fec.gov/help-candidates-and-committees/guides/?tab=political-party-committees redirect;
rewrite ^/rad/pacs/FederalElectionCommission-RAD-PACs.shtml https://www.fec.gov/help-candidates-and-committees/guides/?tab=political-action-committees redirect;
rewrite ^/rad/rad_process/FEC-ReportsAnalysisDivision-RADProcesses.shtml https://www.fec.gov/resources/cms-content/documents/RAD_Review_Procedures_Feb2018.pdf redirect;

# rad/candidates/documents/ redirects
rewrite ^/rad/candidates/documents/FECFileGettingStartedManual.pdf https://www.fec.gov/resources/cms-content/documents/FECFile_GettingStartedManual_Candidates.pdf redirect;

# rad/documents/ redirects
rewrite ^/rad/documents/FECFileGettingStartedManual.pdf https://www.fec.gov/resources/cms-content/documents/FECFile_GettingStartedManual_Candidates.pdf redirect;
rewrite ^/rad/documents/best_practices_to_avoid_pitfalls_2018.pdf https://www.fec.gov/resources/cms-content/documents/best_practices_to_avoid_pitfalls_2018.pdf redirect;
rewrite ^/rad/documents/RADProcessDocument3-16-16.pdf https://www.fec.gov/resources/cms-content/documents/RAD_Review_Procedures_Feb2018.pdf redirect;

# support/ redirects
rewrite ^/support/faq_filing.shtml https://www.fec.gov/help-candidates-and-committees/filing-reports/electronic-filing/ redirect;
Expand Down Expand Up @@ -1290,6 +1330,9 @@ rewrite ^/pubrec/pacronyms/(.*) https://www.fec.gov/introduction-campaign-financ
# sunshine/ broader redirects
rewrite ^/sunshine/([0-9]+)/(.*).pdf https://www.fec.gov/resources/updates/sunshine-notices/$1/$2.pdf redirect;

# /rad/ broader redirects
rewrite ^/rad/(.*) https://www.fec.gov/help-candidates-and-committees/ redirect;

# Captures all dates of format agenda/YYYY/agendaYYYYMMDD
rewrite "^/agenda/([0-9]{4})/agenda([0-9]{4})01([0-9]{2}).*" https://www.fec.gov/updates/january-$3-$2-open-meeting/ redirect;
rewrite "^/agenda/([0-9]{4})/agenda([0-9]{4})02([0-9]{2}).*" https://www.fec.gov/updates/february-$3-$2-open-meeting/ redirect;
Expand Down