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

Adding redirects for publications #62

Merged
merged 3 commits into from
Sep 14, 2017
Merged
Show file tree
Hide file tree
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
33 changes: 31 additions & 2 deletions redirects-transition.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#rewrite rules
#Redirect rules for specific pages

rewrite ^/pdf/candgui.pdf https://www.fec.gov/resources/cms-content/documents/candgui.pdf redirect;
rewrite ^/pdf/partygui.pdf https://www.fec.gov/resources/cms-content/documents/partygui.pdf redirect;
rewrite ^/pdf/nongui.pdf https://www.fec.gov/resources/cms-content/documents/nongui.pdf redirect;
rewrite ^/auditsearch/auditsearch.do http://classic.fec.gov/auditsearch/auditsearch.do redirect;
rewrite ^/calendar/calendar.shtml http://classic.fec.gov/calendar/calendar.shtml redirect;
rewrite ^/calendar/calendar.shtml http://classic.fec.gov/calendar/calendar.shtml redirect;
Expand All @@ -11,6 +14,9 @@ rewrite ^/disclosurehs/hsnational.do http://classic.fec.gov/disclosurehs/hsnatio
rewrite ^/disclosureie/ienational.do http://classic.fec.gov/disclosureie/ienational.do redirect;
rewrite ^/disclosureie/ienational.do?candOffice=S http://classic.fec.gov/disclosureie/ienational.do?candOffice=S redirect;
rewrite ^/disclosurep/pnational.do http://classic.fec.gov/disclosurep/pnational.do redirect;
rewrite ^/support/GettingStartedManualUpdate-A_61517.pdf https://www.fec.gov/resources/cms-content/documents/GettingStarted_FECFileManual_candidates_61517.pdf redirect;
rewrite ^/support/GettingStartedManual_U.pdf https://www.fec.gov/resources/cms-content/documents/GettingStarted_FECFileManual_pac-party.pdf redirect;
rewrite ^/support/Getting_Started_Manual_ie_filers_61517.pdf https://www.fec.gov/resources/cms-content/documents/GettingStarted_FECFileManual_ie_filers_61517.pdf redirect;
rewrite ^/pindex.shtml http://classic.fec.gov/pindex.shtml redirect;
rewrite ^/portal/download.shtml http://classic.fec.gov/portal/download.shtml redirect;
rewrite ^/portal/graphic_presentation.shtml http://classic.fec.gov/portal/graphic_presentation.shtml redirect;
Expand All @@ -29,9 +35,29 @@ rewrite ^/pages/budget/budget.shtml https://www.fec.gov/about/reports-about-fec/
rewrite ^/pages/budget/budget.shtml https://www.fec.gov/about/reports-about-fec/strategy-budget-and-performance/ redirect;
rewrite ^/info/report_dates.shtml https://www.fec.gov/help-candidates-and-committees/dates-and-deadlines/ redirect;
rewrite ^/pages/contact.shtml https://www.fec.gov/contact-us/ redirect;
rewrite ^/pages/brochures/ao.shtml https://www.fec.gov/data/legal/advisory-opinions/ redirect;
rewrite ^/pages/brochures/ao.shtml https://www.fec.gov/legal-resources/advisory-opinions-process/ redirect;
rewrite ^/pages/brochures/bestpractices.shtml https://www.fec.gov/updates/best-practices-committee-management/ redirect;
rewrite ^/pages/brochures/indexp.shtml https://www.fec.gov/help-candidates-and-committees/making-disbursements-pac/ redirect;
rewrite ^/pages/brochures/treas.shtml https://www.fec.gov/updates/committee-treasurers-2017-record/ redirect;
rewrite ^/pages/brochures/committee_treasurers_brochure.pdf https://www.fec.gov/updates/committee-treasurers-2017-record/ redirect;
rewrite ^/pages/brochures/delegate.shtml https://www.fec.gov/updates/national-party-convention-delegates-2/ redirect;
rewrite ^/ans/answers_compliance.shtml#embezzlement1 https://www.fec.gov/help-candidates-and-committees/keeping-records/misappropriated-funds/ redirect;
rewrite ^/pages/brochures/foreign.shtml https://www.fec.gov/updates/foreign-nationals/ redirect;
rewrite ^/pages/brochures/jointfundraising.shtml https://www.fec.gov/updates/joint-fundraising-2/ redirect;
rewrite ^/pages/brochures/locparty.shtml https://www.fec.gov/help-candidates-and-committees/registering-political-party/information-local-party-committees-not-registered-fec/ redirect;
rewrite ^/pages/brochures/ssfvnonconnected.shtml https://www.fec.gov/help-candidates-and-committees/registering-pac/understanding-nonconnected-pacs/ redirect;
rewrite ^/pages/brochures/TestingtheWaters.shtml https://www.fec.gov/updates/testing-the-waters-2017/ redirect;
rewrite ^/law/law.shtml https://www.fec.gov/legal-resources/ redirect;
rewrite ^/law/draftaos.shtml https://www.fec.gov/legal-resources/advisory-opinions-process/#draft-answers-to-advisory-opinion-requests redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-02.pdf https://www.fec.gov/documents/158/fedreg_notice2017-02.pdf redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-03.pdf https://www.fec.gov/documents/159/fedreg_notice2017-03.pdf redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-04.pdf https://www.fec.gov/documents/160/fedreg_notice2017-04.pdf redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-05.pdf https://www.fec.gov/documents/157/fedreg_notice2017-05.pdf redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-06.pdf https://www.fec.gov/documents/156/fedreg_notice2017-06.pdf redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-07.pdf https://www.fec.gov/documents/155/fedreg_notice2017-07.pdf redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-08.pdf https://www.fec.gov/documents/154/fedreg_notice2017-08.pdf redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-10.pdf https://www.fec.gov/documents/153/fedreg_notice2017-10.pdf redirect;
rewrite ^/law/cfr/ej_compilation/2017/notice2017-11.pdf https://www.fec.gov/documents/152/fedreg_notice2017-11.pdf redirect;
rewrite ^/em/em.shtml https://www.fec.gov/legal-resources/enforcement/ redirect;
rewrite ^/em/mur.shtml https://www.fec.gov/legal-resources/enforcement/ redirect;
rewrite ^/pages/brochures/admin_fines.shtml https://www.fec.gov/legal-resources/enforcement/administrative-fines/ redirect;
Expand All @@ -50,11 +76,14 @@ rewrite ^/press/weekly_digests.shtml https://www.fec.gov/updates/?update_type=we
rewrite ^/info/compliance.shtml /index.html redirect;
rewrite ^/press/foia.shtml https://www.fec.gov/freedom-information-act/ redirect;
rewrite ^/rad/index.shtml /rad/index.html redirect;
rewrite ^/rad/candidates/documents/FECFileGettingStartedManual.pdf https://www.fec.gov/resources/cms-content/documents/GettingStarted_FECFileManual_candidates_61517.pdf redirect;
rewrite ^/pages/bcra/bcra_update.shtml https://www.fec.gov/legal-resources/legislation/ redirect;
rewrite ^/pages/bcra/major_resources_bcra.shtml https://www.fec.gov/legal-resources/ redirect;
rewrite ^/pages/bcra/litigation.shtml https://www.fec.gov/legal-resources/court-cases/ redirect;
rewrite ^/pages/bcra/aos_bcra.shtml https://www.fec.gov/data/legal/search/advisory-opinions/?type=advisory_opinions&search=BCRA&q=BCRA&ao_category=F redirect;
rewrite ^/pages/bcra/rulemakings/rulemakings_bcra.shtml https://www.fec.gov/legal-resources/regulations/ redirect;

#This section is for broader redirects
rewrite ^/pdf/nprm/(.*) https://www.fec.gov/resources/legal-resources/rulemakings/nprm/$1 redirect;
rewrite ^/agenda/([0-9]+)/documents/(.*) https://www.fec.gov/resources/updates/agendas/$1/$2 redirect;
rewrite ^/agenda/([0-9]+)/(.*).pdf https://www.fec.gov/resources/updates/agendas/$1/$2.pdf redirect;
Expand Down
7 changes: 6 additions & 1 deletion redirects-www.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# rewrite rules
#Redirect rules for specific pages

rewrite ^/af/pay.shtml /legal-resources/enforcement/administrative-fines/#paying-a-fine redirect;
rewrite ^/pindex.shtml http://classic.fec.gov/pindex.shtml redirect;
Expand Down Expand Up @@ -44,6 +44,9 @@ rewrite ^/auditsearch/auditsearch.do http://classic.fec.gov/auditsearch/auditsea
rewrite ^/info/filing.shtml /help-candidates-and-committees/ redirect;
rewrite ^/info/report_dates_2017.shtml https://transition.fec.gov/info/report_dates_2017.shtml redirect;
rewrite ^/pdf/eleccoll.pdf https://transition.fec.gov/pdf/eleccoll.pdf redirect;
rewrite ^/pdf/candgui.pdf /resources/cms-content/documents/candgui.pdf redirect;
rewrite ^/pdf/partygui.pdf /resources/cms-content/documents/partygui.pdf redirect;
rewrite ^/pdf/nongui.pdf /resources/cms-content/documents/nongui.pdf redirect;
rewrite ^/elecfil/electron.shtml https://transition.fec.gov/elecfil/electron.shtml redirect;
rewrite ^/efiling /help-candidates-and-committees/filing-reports/electronic-filing/ redirect;
rewrite ^/support /help-candidates-and-committees/filing-reports/electronic-filing/ redirect;
Expand Down Expand Up @@ -135,6 +138,8 @@ rewrite ^/finance/disclosure/candcmte_info.shtml /data redirect;
rewrite ^/audio/images/audio.png https://transition.fec.gov/images/audio.png redirect;
rewrite ^/images/transcript_icon.png https://transition.fec.gov/images/transcript_icon.png redirect;
rewrite ^/images/play_icon.png https://transition.fec.gov/images/play_icon.png redirect;

#This section is for broader redirects
rewrite ^/fecviewer/CandidateCommitteeDetail.do /data/?search=$arg_candidateCommitteeId redirect;
rewrite ^/pdf/nprm/(.*) /resources/legal-resources/rulemakings/nprm/$1 redirect;
rewrite ^/pages/brochures/(.*) https://transition.fec.gov/pages/brochures/$1 redirect;
Expand Down