Skip to content

Commit

Permalink
Redirects in netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
wallento authored and imphil committed Aug 18, 2024
1 parent dd0f69e commit 30dc161
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
11 changes: 0 additions & 11 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,6 @@ export default defineNuxtConfig({
// Redirect the ORConf landing page to the most current one.
'/orconf': { redirect: '/orconf/2024' },

// Redirect legacy URLs to archive site, until we do this in netlify
'/orconf/2023': { redirect: 'https://archive.orconf.org/2023/', prerender: false },
'/orconf/2019': { redirect: 'https://archive.orconf.org/2019/', prerender: false },
'/orconf/2018': { redirect: 'https://archive.orconf.org/2018/', prerender: false },
'/orconf/2017': { redirect: 'https://archive.orconf.org/2017/', prerender: false },
'/orconf/2016': { redirect: 'https://archive.orconf.org/2016/', prerender: false },
'/orconf/2015': { redirect: 'https://archive.orconf.org/2015/', prerender: false },
'/orconf/2014': { redirect: 'https://archive.orconf.org/2014/', prerender: false },
'/orconf/2013': { redirect: 'https://archive.orconf.org/2013/', prerender: false },
'/orconf/2012': { redirect: 'https://archive.orconf.org/2012/', prerender: false },

// Matrix server hosting
// Disable prerendering to ensure that the redirects are done using HTTP
// headers, and not HTML redirects.
Expand Down
20 changes: 20 additions & 0 deletions public/_redirects
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@
# - Domains must be added to the Netlify account first.
# - Use nuxt.config.ts for all redirects within the site.

# Redirect http[s]://[www.]orconf.org/{years} of old pages to https://archive.orconf.org/{years}
http://orconf.org/2023 https://archive.orconf.org/2023 302!
https://orconf.org/2023 https://archive.orconf.org/2023 302!
http://orconf.org/2019 https://archive.orconf.org/2019 302!
https://orconf.org/2019 https://archive.orconf.org/2019 302!
http://orconf.org/2018 https://archive.orconf.org/2018 302!
https://orconf.org/2018 https://archive.orconf.org/2018 302!
http://orconf.org/2017 https://archive.orconf.org/2017 302!
https://orconf.org/2017 https://archive.orconf.org/2017 302!
http://orconf.org/2016 https://archive.orconf.org/2016 302!
https://orconf.org/2016 https://archive.orconf.org/2016 302!
http://orconf.org/2015 https://archive.orconf.org/2015 302!
https://orconf.org/2015 https://archive.orconf.org/2015 302!
http://orconf.org/2014 https://archive.orconf.org/2014 302!
https://orconf.org/2014 https://archive.orconf.org/2014 302!
http://orconf.org/2013 https://archive.orconf.org/2013 302!
https://orconf.org/2013 https://archive.orconf.org/2013 302!
http://orconf.org/2012 https://archive.orconf.org/2012 302!
https://orconf.org/2012 https://archive.orconf.org/2012 302!

# Redirect http[s]://[www.]orconf.org/* to https://fossi-foundation.org/orconf/*
http://orconf.org/* https://fossi-foundation.org/orconf/:splat 302!
https://orconf.org/* https://fossi-foundation.org/orconf/:splat 302!
Expand Down

0 comments on commit 30dc161

Please sign in to comment.