Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix: happygaia redirects, release 2.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Feb 21, 2019
1 parent 488bed4 commit b4e37cc
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 98 deletions.
16 changes: 8 additions & 8 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ exports.onPostBuild = () => {
`/en/blog/atom/* /en/blog/rss.xml 301`,
`/de/blog/atom/* /de/blog/rss.xml 301`,

`/en/blog/* /en/blog/?url=:splat 301`,
`/de/blog/* /de/blog/?url=:splat 301`,
`/en/blog/* https://www.happygaia.com/en/blog/?url=:splat 301`,
`/de/blog/* https://www.happygaia.com/de/blog/?url=:splat 301`,

// manual redirection fixes
`/globetrawter/blog/oh-don-t-stop/ /en/blog/oh-dont-stop/ 301`,
`/en/globetrawter/* /en/blog/ 301`,
`/de/globetrawter/* /de/blog/ 301`,
`/globetrawter/blog/oh-don-t-stop/ https://www.happygaia.com/en/blog/oh-dont-stop/ 301`,
`/en/globetrawter/* https://www.happygaia.com/en/blog/ 301`,
`/de/globetrawter/* https://www.happygaia.com/de/blog/ 301`,

`/en/de/* / 301`,
`/en/danke/* /de/spenden/ 301`,
Expand All @@ -338,11 +338,11 @@ exports.onPostBuild = () => {
`/en/1193/* /en/blog/ 301`,
`/en/10592/* /en/blog/ 301`,

// redirect everything still not catched to /en/:splat
`/* /en/:splat 301`,

`/en/* /en/404/?url=:splat 404`,
`/de/* /de/404/?url=:splat 404`,

// redirect everything still not catched to /en/:splat
`/* /en/:splat 301`,
])

if (finalRedirects.length) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gaiama.org",
"private": true,
"description": "GaiAma.org website",
"version": "2.3.7",
"version": "2.3.8",
"author": "Can Rau <cansrau@gmail.com>",
"license": "MIT",
"homepage": "https://www.gaiama.org",
Expand Down
180 changes: 91 additions & 89 deletions redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,94 +20,96 @@ exports.redirects = [
`/spende /de/spenden/?utm_source=gaiama.org/spende#main-nav 301`,
`/donate /en/donate/?utm_source=gaiama.org/donate#main-nav 301`,

// `/Left-in-the_Dark_free-edition-c604d4d35b6aedd11d4470a8cee465fd.pdf /assets/Left-in-the_Dark_free-edition.pdf 301`,

// happygaia articles soon to be moved to dedicated archive blog happygaia.com
`/de/blog/ein-grosser-bakterienhaufen/ /de/ 302!`,
`/en/blog/a-big-pile-of-bacteria/ /en/ 302!`,
`/de/blog/nix-drueber/ /de/ 302!`,
`/en/blog/a-true-story/ /en/ 302!`,
`/de/blog/blogs-liest-man-uebrigens-rueckwaerts/ /de/ 302!`,
`/en/blog/addicted-to-blogging/ /en/ 302!`,
`/de/blog/wenn-sternschnuppen-fliegen/ /de/ 302!`,
`/en/blog/airplanes-are-shootingstars/ /en/ 302!`,
`/de/blog/es-gibt-keine-katzen-in-amerika/ /de/ 302!`,
`/en/blog/america/ /en/ 302!`,
`/de/blog/hui-statt-pfui/ /de/ 302!`,
`/en/blog/applause-for-human-fur/ /en/ 302!`,
`/de/blog/brokkoligratin/ /de/ 302!`,
`/en/blog/broccoli-gratin/ /en/ 302!`,
`/de/blog/camembert-kaese-mit-kokosbrot/ /de/ 302!`,
`/en/blog/camembert-cheese-with-coconut-bread/ /en/ 302!`,
`/de/blog/weihnachten-in-cusco-peru/ /de/ 302!`,
`/en/blog/christmas-in-cusco-peru/ /en/ 302!`,
`/de/blog/koks-lumbien/ /de/ 302!`,
`/en/blog/coca-lombia/ /en/ 302!`,
`/de/blog/bunt-bunter-peru/ /de/ 302!`,
`/en/blog/colors-more-colors-peru/ /en/ 302!`,
`/de/blog/von-der-heide-in-den-sueden/ /de/ 302!`,
`/en/blog/following-the-sun/ /en/ 302!`,
`/de/blog/grenzen-wollen-ueberschritten-werden/ /de/ 302!`,
`/en/blog/french-kiss/ /en/ 302!`,
`/de/blog/wie-man-gold-macht/ /de/ 302!`,
`/en/blog/how-to-make-gold/ /en/ 302!`,
`/de/blog/julias-tag-bei-uns-leben-nahe-des-machu-picchu/ /de/ 302!`,
`/en/blog/julias-day-with-us-living-near-machu-picchu/ /en/ 302!`,
`/de/blog/im-land-der-inka/ /de/ 302!`,
`/de/blog/alpacca-bussi-geben/ /de/ 302!`,
`/en/blog/land-of-the-inka/ /en/ 302!`,
`/en/blog/kiss-kiss-the-alpacca/ /en/ 302!`,
`/de/blog/lakritze-zum-fruehstueck/ /de/ 302!`,
`/en/blog/licorice-for-breakfast/ /en/ 302!`,
`/de/blog/der-geschmack-einer-leichten-mayonnaise-ganz-fix-gemixt/ /de/ 302!`,
`/en/blog/mayonnaise-fast-mixed-easy-ingredients/ /en/ 302!`,
`/de/blog/natuerliche-verhuetung/ /de/ 302!`,
`/en/blog/natural-birth-control/ /en/ 302!`,
`/de/blog/internet-aus-der-natur-das-fundament-der-permakultur/ /de/ 302!`,
`/en/blog/natural-internet-the-foundation-of-permaculture/ /en/ 302!`,
`/de/blog/die-rhone-ist-kein-fluss-sondern-ein-catwalk/ /de/ 302!`,
`/en/blog/not-a-river-but-a-catwalk/ /en/ 302!`,
`/de/blog/oh-hoer-nicht-auf/ /de/ 302!`,
`/en/blog/oh-dont-stop/ /en/ 302!`,
`/de/blog/packliste/ /de/ 302!`,
`/en/blog/packing-list/ /en/ 302!`,
`/de/blog/permakultur-im-grossen-stil/ /de/ 302!`,
`/en/blog/permaculture-in-big-areas/ /en/ 302!`,
`/de/blog/das-echte-leben-hat-gewonnen/ /de/ 302!`,
`/en/blog/real-life-won/ /en/ 302!`,
`/de/blog/sex-mit-pflanzen/ /de/ 302!`,
`/en/blog/sex-with-plants/ /en/ 302!`,
`/de/blog/start-ins-leben/ /de/ 302!`,
`/en/blog/starting-our-new-life/ /en/ 302!`,
`/de/blog/gefuellte-paprika/ /de/ 302!`,
`/en/blog/stuffed-sweet-pepper/ /en/ 302!`,
`/de/blog/wie-teig-naschen-creme/ /de/ 302!`,
`/en/blog/tastes-like-dough/ /en/ 302!`,
`/de/blog/der-2-tag-auf-weltreise/ /de/ 302!`,
`/en/blog/the-2nd-day-on-our-round-the-world-trip/ /en/ 302!`,
`/de/blog/die-grundlagen-der-permakultur/ /de/ 302!`,
`/en/blog/the-basics-of-permaculture/ /en/ 302!`,
`/de/blog/besuch-der-ersten-oekogemeinschaft/ /de/ 302!`,
`/en/blog/the-first-eco-village/ /en/ 302!`,
`/de/blog/die-haben-nix-drauf /de/ 302!`,
`/de/blog/die-hat-nix-drauf /de/ 302!`,
`/en/blog/the-natural-way-to-clean-yourself/ /en/ 302!`,
`/de/blog/ein-land-das-es-nicht-gibt/ /de/ 302!`,
`/en/blog/the-non-existing-country/ /en/ 302!`,
`/de/blog/der-rohkostartikel-1-2/ /de/ 302!`,
`/en/blog/the-raw-food-article-1-2/ /en/ 302!`,
`/de/blog/zwei-schoepfer-und-ein-nilpferd-im-wunderland/ /de/ 302!`,
`/en/blog/two-creators-and-a-hippo-in-wonderland/ /en/ 302!`,
`/de/blog/nix-drunter/ /de/ 302!`,
`/en/blog/under-a-wear/ /en/ 302!`,
`/de/blog/staedte-begruenen/ /de/ 302!`,
`/en/blog/urban-permaculture/ /en/ 302!`,
`/de/blog/leserfragen-zum-haarewaschen-nur-mit-wasser-meine-besten-tricks-so-klappt-es/ /de/ 302!`,
`/en/blog/user-question-more-details-about-hair-washing-only-with-water-please/ /en/ 302!`,
`/de/blog/viva-la-boobies/ /de/ 302!`,
`/en/blog/viva-la-boobies/ /en/ 302!`,
`/de/blog/achtung-risiko-teil-2-unseres-rohkostartikels/ /de/ 302!`,
`/en/blog/watch-out-for-this-mistake-part-2-of-our-rawfood-article/ /en/ 302!`,
`/de/blog/wir-gruenden-eine-natuerliche-selbtversorger-siedlung-im-magischen-peru/ /de/ 302!`,
`/en/blog/we-are-now-starting-a-self-sustainable-eco-village-in-peru/ /en/ 302!`,
`/de/blog/wir-im-heiligen-tal-der-inkas/ /de/ 302!`,
`/en/blog/we-visit-the-sacred-valley-of-the-inka-culture/ /en/ 302!`,
`/de/blog/ein-grosser-bakterienhaufen/ https://www.happygaia.com/de/blog/ein-grosser-bakterienhaufen/ 301!`,
`/en/blog/a-big-pile-of-bacteria/ https://www.happygaia.com/en/blog/a-big-pile-of-bacteria/ 301!`,
`/de/blog/nix-drueber/ https://www.happygaia.com/de/blog/nix-drueber/ 301!`,
`/en/blog/a-true-story/ https://www.happygaia.com/en/blog/a-true-story/ 301!`,
`/de/blog/blogs-liest-man-uebrigens-rueckwaerts/ https://www.happygaia.com/de/blog/blogs-liest-man-uebrigens-rueckwaerts/ 301!`,
`/en/blog/addicted-to-blogging/ https://www.happygaia.com/en/blog/addicted-to-blogging/ 301!`,
`/de/blog/wenn-sternschnuppen-fliegen/ https://www.happygaia.com/de/blog/wenn-sternschnuppen-fliegen/ 301!`,
`/en/blog/airplanes-are-shootingstars/ https://www.happygaia.com/en/blog/airplanes-are-shootingstars/ 301!`,
`/de/blog/es-gibt-keine-katzen-in-amerika/ https://www.happygaia.com/de/blog/es-gibt-keine-katzen-in-amerika/ 301!`,
`/en/blog/america/ https://www.happygaia.com/en/blog/america/ 301!`,
`/de/blog/hui-statt-pfui/ https://www.happygaia.com/de/blog/hui-statt-pfui/ 301!`,
`/en/blog/applause-for-human-fur/ https://www.happygaia.com/en/blog/applause-for-human-fur/ 301!`,
`/de/blog/brokkoligratin/ https://www.happygaia.com/de/blog/brokkoligratin/ 301!`,
`/en/blog/broccoli-gratin/ https://www.happygaia.com/en/blog/broccoli-gratin/ 301!`,
`/de/blog/camembert-kaese-mit-kokosbrot/ https://www.happygaia.com/de/blog/camembert-kaese-mit-kokosbrot/ 301!`,
`/en/blog/camembert-cheese-with-coconut-bread/ https://www.happygaia.com/en/blog/camembert-cheese-with-coconut-bread/ 301!`,
`/de/blog/weihnachten-in-cusco-peru/ https://www.happygaia.com/de/blog/weihnachten-in-cusco-peru/ 301!`,
`/en/blog/christmas-in-cusco-peru/ https://www.happygaia.com/en/blog/christmas-in-cusco-peru/ 301!`,
`/de/blog/koks-lumbien/ https://www.happygaia.com/de/blog/koks-lumbien/ 301!`,
`/en/blog/coca-lombia/ https://www.happygaia.com/en/blog/coca-lombia/ 301!`,
`/de/blog/bunt-bunter-peru/ https://www.happygaia.com/de/blog/bunt-bunter-peru/ 301!`,
`/en/blog/colors-more-colors-peru/ https://www.happygaia.com/en/blog/colors-more-colors-peru/ 301!`,
`/de/blog/von-der-heide-in-den-sueden/ https://www.happygaia.com/de/blog/von-der-heide-in-den-sueden/ 301!`,
`/en/blog/following-the-sun/ https://www.happygaia.com/en/blog/following-the-sun/ 301!`,
`/de/blog/grenzen-wollen-ueberschritten-werden/ https://www.happygaia.com/de/blog/grenzen-wollen-ueberschritten-werden/ 301!`,
`/en/blog/french-kiss/ https://www.happygaia.com/en/blog/french-kiss/ 301!`,
`/de/blog/wie-man-gold-macht/ https://www.happygaia.com/de/blog/wie-man-gold-macht/ 301!`,
`/en/blog/how-to-make-gold/ https://www.happygaia.com/en/blog/how-to-make-gold/ 301!`,
`/de/blog/julias-tag-bei-uns-leben-nahe-des-machu-picchu/ https://www.happygaia.com/de/blog/julias-tag-bei-uns-leben-nahe-des-machu-picchu/ 301!`,
`/en/blog/julias-day-with-us-living-near-machu-picchu/ https://www.happygaia.com/en/blog/julias-day-with-us-living-near-machu-picchu/ 301!`,
`/de/blog/im-land-der-inka/ https://www.happygaia.com/de/blog/im-land-der-inka/ 301!`,
`/de/blog/alpacca-bussi-geben/ https://www.happygaia.com/de/blog/alpacca-bussi-geben/ 301!`,
`/en/blog/land-of-the-inka/ https://www.happygaia.com/en/blog/land-of-the-inka/ 301!`,
`/en/blog/kiss-kiss-the-alpacca/ https://www.happygaia.com/en/blog/kiss-kiss-the-alpacca/ 301!`,
`/de/blog/lakritze-zum-fruehstueck/ https://www.happygaia.com/de/blog/lakritze-zum-fruehstueck/ 301!`,
`/en/blog/licorice-for-breakfast/ https://www.happygaia.com/en/blog/licorice-for-breakfast/ 301!`,
`/de/blog/der-geschmack-einer-leichten-mayonnaise-ganz-fix-gemixt/ https://www.happygaia.com/de/blog/der-geschmack-einer-leichten-mayonnaise-ganz-fix-gemixt/ 301!`,
`/en/blog/mayonnaise-fast-mixed-easy-ingredients/ https://www.happygaia.com/en/blog/mayonnaise-fast-mixed-easy-ingredients/ 301!`,
`/de/blog/natuerliche-verhuetung/ https://www.happygaia.com/de/blog/natuerliche-verhuetung/ 301!`,
`/en/blog/natural-birth-control/ https://www.happygaia.com/en/blog/natural-birth-control/ 301!`,
`/de/blog/internet-aus-der-natur-das-fundament-der-permakultur/ https://www.happygaia.com/de/blog/internet-aus-der-natur-das-fundament-der-permakultur/ 301!`,
`/en/blog/natural-internet-the-foundation-of-permaculture/ https://www.happygaia.com/en/blog/natural-internet-the-foundation-of-permaculture/ 301!`,
`/de/blog/die-rhone-ist-kein-fluss-sondern-ein-catwalk/ https://www.happygaia.com/de/blog/die-rhone-ist-kein-fluss-sondern-ein-catwalk/ 301!`,
`/en/blog/not-a-river-but-a-catwalk/ https://www.happygaia.com/en/blog/not-a-river-but-a-catwalk/ 301!`,
`/de/blog/oh-hoer-nicht-auf/ https://www.happygaia.com/de/blog/oh-hoer-nicht-auf/ 301!`,
`/en/blog/oh-dont-stop/ https://www.happygaia.com/en/blog/oh-dont-stop/ 301!`,
`/de/blog/packliste/ https://www.happygaia.com/de/blog/packliste/ 301!`,
`/en/blog/packing-list/ https://www.happygaia.com/en/blog/packing-list/ 301!`,
`/de/blog/permakultur-im-grossen-stil/ https://www.happygaia.com/de/blog/permakultur-im-grossen-stil/ 301!`,
`/en/blog/permaculture-in-big-areas/ https://www.happygaia.com/en/blog/permaculture-in-big-areas/ 301!`,
`/de/blog/das-echte-leben-hat-gewonnen/ https://www.happygaia.com/de/blog/das-echte-leben-hat-gewonnen/ 301!`,
`/en/blog/real-life-won/ https://www.happygaia.com/en/blog/real-life-won/ 301!`,
`/de/blog/sex-mit-pflanzen/ https://www.happygaia.com/de/blog/sex-mit-pflanzen/ 301!`,
`/en/blog/sex-with-plants/ https://www.happygaia.com/en/blog/sex-with-plants/ 301!`,
`/de/blog/start-ins-leben/ https://www.happygaia.com/de/blog/start-ins-leben/ 301!`,
`/en/blog/starting-our-new-life/ https://www.happygaia.com/en/blog/starting-our-new-life/ 301!`,
`/de/blog/gefuellte-paprika/ https://www.happygaia.com/de/blog/gefuellte-paprika/ 301!`,
`/en/blog/stuffed-sweet-pepper/ https://www.happygaia.com/en/blog/stuffed-sweet-pepper/ 301!`,
`/de/blog/wie-teig-naschen-creme/ https://www.happygaia.com/de/blog/wie-teig-naschen-creme/ 301!`,
`/en/blog/tastes-like-dough/ https://www.happygaia.com/en/blog/tastes-like-dough/ 301!`,
`/de/blog/der-2-tag-auf-weltreise/ https://www.happygaia.com/de/blog/der-2-tag-auf-weltreise/ 301!`,
`/en/blog/the-2nd-day-on-our-round-the-world-trip/ https://www.happygaia.com/en/blog/the-2nd-day-on-our-round-the-world-trip/ 301!`,
`/de/blog/die-grundlagen-der-permakultur/ https://www.happygaia.com/de/blog/die-grundlagen-der-permakultur/ 301!`,
`/en/blog/the-basics-of-permaculture/ https://www.happygaia.com/en/blog/the-basics-of-permaculture/ 301!`,
`/de/blog/besuch-der-ersten-oekogemeinschaft/ https://www.happygaia.com/de/blog/besuch-der-ersten-oekogemeinschaft/ 301!`,
`/en/blog/the-first-eco-village/ https://www.happygaia.com/en/blog/the-first-eco-village/ 301!`,
`/de/blog/die-haben-nix-drauf https://www.happygaia.com/de/blog/die-haben-nix-drauf 301!`,
`/de/blog/die-hat-nix-drauf https://www.happygaia.com/de/blog/die-hat-nix-drauf 301!`,
`/en/blog/the-natural-way-to-clean-yourself/ https://www.happygaia.com/en/blog/the-natural-way-to-clean-yourself/ 301!`,
`/de/blog/ein-land-das-es-nicht-gibt/ https://www.happygaia.com/de/blog/ein-land-das-es-nicht-gibt/ 301!`,
`/en/blog/the-non-existing-country/ https://www.happygaia.com/en/blog/the-non-existing-country/ 301!`,
`/de/blog/der-rohkostartikel-1-2/ https://www.happygaia.com/de/blog/der-rohkostartikel-1-2/ 301!`,
`/en/blog/the-raw-food-article-1-2/ https://www.happygaia.com/en/blog/the-raw-food-article-1-2/ 301!`,
`/de/blog/zwei-schoepfer-und-ein-nilpferd-im-wunderland/ https://www.happygaia.com/de/blog/zwei-schoepfer-und-ein-nilpferd-im-wunderland/ 301!`,
`/en/blog/two-creators-and-a-hippo-in-wonderland/ https://www.happygaia.com/en/blog/two-creators-and-a-hippo-in-wonderland/ 301!`,
`/de/blog/nix-drunter/ https://www.happygaia.com/de/blog/nix-drunter/ 301!`,
`/en/blog/under-a-wear/ https://www.happygaia.com/en/blog/under-a-wear/ 301!`,
`/de/blog/staedte-begruenen/ https://www.happygaia.com/de/blog/staedte-begruenen/ 301!`,
`/en/blog/urban-permaculture/ https://www.happygaia.com/en/blog/urban-permaculture/ 301!`,
`/de/blog/leserfragen-zum-haarewaschen-nur-mit-wasser-meine-besten-tricks-so-klappt-es/ https://www.happygaia.com/de/blog/leserfragen-zum-haarewaschen-nur-mit-wasser-meine-besten-tricks-so-klappt-es/ 301!`,
`/en/blog/user-question-more-details-about-hair-washing-only-with-water-please/ https://www.happygaia.com/en/blog/user-question-more-details-about-hair-washing-only-with-water-please/ 301!`,
`/de/blog/viva-la-boobies/ https://www.happygaia.com/de/blog/viva-la-boobies/ 301!`,
`/en/blog/viva-la-boobies/ https://www.happygaia.com/en/blog/viva-la-boobies/ 301!`,
`/de/blog/achtung-risiko-teil-2-unseres-rohkostartikels/ https://www.happygaia.com/de/blog/achtung-risiko-teil-2-unseres-rohkostartikels/ 301!`,
`/en/blog/watch-out-for-this-mistake-part-2-of-our-rawfood-article/ https://www.happygaia.com/en/blog/watch-out-for-this-mistake-part-2-of-our-rawfood-article/ 301!`,
`/de/blog/wir-gruenden-eine-natuerliche-selbtversorger-siedlung-im-magischen-peru/ https://www.happygaia.com/de/blog/wir-gruenden-eine-natuerliche-selbtversorger-siedlung-im-magischen-peru/ 301!`,
`/en/blog/we-are-now-starting-a-self-sustainable-eco-village-in-peru/ https://www.happygaia.com/en/blog/we-are-now-starting-a-self-sustainable-eco-village-in-peru/ 301!`,
`/de/blog/wir-im-heiligen-tal-der-inkas/ https://www.happygaia.com/de/blog/wir-im-heiligen-tal-der-inkas/ 301!`,
`/en/blog/we-visit-the-sacred-valley-of-the-inka-culture/ https://www.happygaia.com/en/blog/we-visit-the-sacred-valley-of-the-inka-culture/ 301!`,
]

0 comments on commit b4e37cc

Please sign in to comment.