From aeebeb2420dcb0e4972194c265b5be31c1597909 Mon Sep 17 00:00:00 2001 From: George Clark Date: Thu, 8 Jul 2021 13:59:07 +0100 Subject: [PATCH 1/6] add test redirect --- .env.development | 1 + netlify.toml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 .env.development diff --git a/.env.development b/.env.development new file mode 100644 index 00000000..37637cc7 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +GATSBY_IS_STAGING=true \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index 0c5b9bb2..066cb476 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,4 +5,9 @@ [[redirects]] from = "/en/latest/" to = "/introduction/" + status = 301 + +[[redirects]] + from = "/install/install-node.html" + to = "/getting-started/installing-the-cardano-node/" status = 301 \ No newline at end of file From 82ebc2ed6b257d570867d460eab7f9887cfe0ad6 Mon Sep 17 00:00:00 2001 From: George Clark Date: Thu, 8 Jul 2021 14:53:03 +0100 Subject: [PATCH 2/6] add redirects --- netlify.toml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/netlify.toml b/netlify.toml index 066cb476..507ed673 100644 --- a/netlify.toml +++ b/netlify.toml @@ -10,4 +10,29 @@ [[redirects]] from = "/install/install-node.html" to = "/getting-started/installing-the-cardano-node/" + status = 301 + +[[redirects]] + from = "/install/use-cli.html" + to = "//getting-started/use-cli/" + status = 301 + +[[redirects]] + from = "/getting-started/stake-pool-operators/index.html" + to = "/getting-started/operating-a-stake-pool/about-stake-pools/" + status = 301 + +[[redirects]] + from = "/getting-started/guidelines-for-operating-large-stake-pools/index.html/" + to = "/getting-started/guidelines-for-large-spos/" + status = 301 + +[[redirects]] + from = "/getting-started/3rd-party-integration/index.html/" + to = "/getting-started/integrating-with-third-parties/" + status = 301 + +[[redirects]] + from = "/getting-started/exchanges/index.html" + to = "//getting-started/running-stake-pools-and-delegation-for-exchanges/" status = 301 \ No newline at end of file From 0976e7d11065aced50ef3b78a16a2181ab4d3e72 Mon Sep 17 00:00:00 2001 From: George Clark Date: Fri, 9 Jul 2021 10:44:27 +0100 Subject: [PATCH 3/6] add more redirects --- netlify.toml | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 83 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index 507ed673..0f546330 100644 --- a/netlify.toml +++ b/netlify.toml @@ -14,7 +14,7 @@ [[redirects]] from = "/install/use-cli.html" - to = "//getting-started/use-cli/" + to = "/getting-started/use-cli/" status = 301 [[redirects]] @@ -34,5 +34,85 @@ [[redirects]] from = "/getting-started/exchanges/index.html" - to = "//getting-started/running-stake-pools-and-delegation-for-exchanges/" - status = 301 \ No newline at end of file + to = "/getting-started/running-stake-pools-and-delegation-for-exchanges/" + status = 301 + +[[redirects]] + from = "/explainers/cardano-explainers/what-is-a-blockchain.html" + to = "/new-to-cardano/what-is-a-blockchain/" + status = 301 + +[[redirects]] + from = "/explainers/cardano-explainers/what-is-a-cryptocurrency.html" + to = "/new-to-cardano/what-is-a-cryptocurrency" + status = 301 + +[[redirects]] + from = "/explainers/cardano-explainers/why-use-cardano.html" + to = "/new-to-cardano/why-use-cardano/" + status = 301 + +[[redirects]] + from = "/explainers/cardano-explainers/proof-of-stake.html" + to = "/new-to-cardano/proof-of-stake/" + status = 301 + +[[redirects]] + from = "/explainers/getting-started-with-cardano/cardano-nodes.html" + to = "/new-to-cardano/cardano-nodes" + status = 301 + +[[redirects]] + from = "/explainers/getting-started-with-cardano/tools.html" + to = "/new-to-cardano/cardano-tracking-tools/" + status = 301 + +[[redirects]] + from = "/explainers/getting-started-with-cardano/how-to-purchase-ada.html" + to = "/new-to-cardano/how-to-purchase-ada/" + status = 301 + +[[redirects]] + from = "/explainers/cardano-explainers/types-of-wallets.html" + to = "/new-to-cardano/types-of-wallets/" + status = 301 + +[[redirects]] + from = "/explainers/getting-started-with-cardano/how-to-delegate.html"" + to = "/new-to-cardano/how-to-delegate/" + status = 301 + +[[redirects]] + from = "/getting-started-with-cardano/how-to-delegate.html" + to = "/new-to-cardano/how-to-delegate/" + status = 301 + +[[redirects]] + from = "/explainers/cardano-explainers/smart-contract-exp.html" + to = "/new-to-cardano/what-is-a-smart-contract/" + status = 301 + +[[redirects]] + from = "/explore-cardano/what-is-a-cardano-node.html" + to = "/core-concepts/cardano-node/" + status = 301 + +[[redirects]] + from = "/explore-cardano/what-is-a-stakepool.html" + to = "/core-concepts/stake-pools/" + status = 301 + +[[redirects]] + from = "/explore-cardano/understanding-the-delegation-mechanism.html" + to = "/core-concepts/delegation/" + status = 301 + +[[redirects]] + from = "/explore-cardano/understanding-pledging-and-rewards.html"" + to = "/core-concepts/pledging-rewards/" + status = 301 + +[[redirects]] + from = "/" + to = "/" + status = 301 From 079ef88ab91d016546d90ebcfc2c930015d88805 Mon Sep 17 00:00:00 2001 From: George Clark Date: Mon, 12 Jul 2021 11:33:37 +0100 Subject: [PATCH 4/6] more redirects --- netlify.toml | 118 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 114 insertions(+), 4 deletions(-) diff --git a/netlify.toml b/netlify.toml index 0f546330..58f09cea 100644 --- a/netlify.toml +++ b/netlify.toml @@ -78,7 +78,7 @@ status = 301 [[redirects]] - from = "/explainers/getting-started-with-cardano/how-to-delegate.html"" + from = "/explainers/getting-started-with-cardano/how-to-delegate.html" to = "/new-to-cardano/how-to-delegate/" status = 301 @@ -108,11 +108,121 @@ status = 301 [[redirects]] - from = "/explore-cardano/understanding-pledging-and-rewards.html"" + from = "/explore-cardano/understanding-pledging-and-rewards.html" to = "/core-concepts/pledging-rewards/" status = 301 [[redirects]] - from = "/" - to = "/" + from = "/explore-cardano/understanding-pledging-and-rewards.html" + to = "/core-concepts/pledging-rewards/" + status = 301 + +[[redirects]] + from = "/explore-cardano/understanding-pledging-and-rewards.html#distributing-rewards" + to = "/pledging-rewards/#distributingrewards" + status = 301 + +[[redirects]] + from = "/learn/pledging-and-delegating-options.html" + to = "/core-concepts/pledging-and-delegation-options/" + status = 301 + +[[redirects]] + from = "/explore-cardano/understanding-consensus.html" + to = "/core-concepts/consensus-explained/" + status = 301 + +[[redirects]] + from = "/learn/Cardano-keys.html" + to = "/core-concepts/cardano-keys/" + status = 301 + +[[redirects]] + from = "/learn/types-addresses.html" + to = "/core-concepts/cardano-addresses/" + status = 301 + +[[redirects]] + from = "/explore-cardano/what-is-a-hard-fork-combinator.html" + to = "/core-concepts/about-hard-forks/" + status = 301 + +[[redirects]] + from = "/learn/chain-confirmation-v-transaction-confirmation.html" + to = "/core-concepts/chain-confirmation-versus-transaction-confirmation/" + status = 301 + +[[redirects]] + from = "/explore-cardano/design-rationale.html" + to = "/explore-cardano/cardano-design-rationale/" + status = 301 + +[[redirects]] + from = "/explore-cardano/cardano-architecture-overview/index.html" + to = "/explore-cardano/cardano-architecture/overview/" + status = 301 + +[[redirects]] + from = "/explore-cardano/cardano-network.html" + to = "/explore-cardano/cardano-network/about-the-cardano-network/" + status = 301 + +[[redirects]] + from = "/explore-cardano/p2p-networking.html" + to = "/explore-cardano/cardano-network/p2p-networking/" + status = 301 + +[[redirects]] + from = "/explore-cardano/cardano-monetary-policy.html" + to = "/explore-cardano/monetary-policy/" + status = 301 + +[[redirects]] + from = "/explore-cardano/cardano-fee-structure.html" + to = "/explore-cardano/fee-structure/" + status = 301 + +[[redirects]] + from = "/explore-cardano/further-reading.html" + to = "/explore-cardano/resources/" + status = 301 + +[[redirects]] + from = "/explore-cardano/relevant-research-papers-and-specifications.html" + to = "/explore-cardano/relevant-research-papers/" + status = 301 + +[[redirects]] + from = "/explorer.cardano.org/" + to = "/tools/explorer/" + status = 301 + +[[redirects]] + from = "/projects/cardano-node/" + to = "/cardano-components/cardano-node/" + status = 301 + +[[redirects]] + from = "https://github.com/input-output-hk/cardano-graphql#overview" + to = "/cardano-components/cardano-graphql/" + status = 301 + +[[redirects]] + from = "https://github.com/input-output-hk/cardano-rosetta#cardano-rosetta" + to = "/cardano-components/cardano-rosetta/" + status = 301 + +[[redirects]] + from = "https://github.com/input-output-hk/cardano-ledger-specs#cardano-ledger" + to = "/cardano-components/cardano-ledger-specs/" + status = 301 + +[[redirects]] + from = "https://github.com/input-output-hk/cardano-db-sync#cardano-db-sync" + to = "/cardano-components/cardano-db-sync/" + status = 301 + +[[redirects]] + from = "https://github.com/input-output-hk/cardano-wallet#overview" + to = "/cardano-components/cardano-wallet/" status = 301 From 2ea50a706ac7be05129b5950fe8bae3b574a175a Mon Sep 17 00:00:00 2001 From: George Clark Date: Mon, 12 Jul 2021 12:19:15 +0100 Subject: [PATCH 5/6] remove github redirects --- netlify.toml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/netlify.toml b/netlify.toml index 58f09cea..797ae7cd 100644 --- a/netlify.toml +++ b/netlify.toml @@ -203,26 +203,6 @@ status = 301 [[redirects]] - from = "https://github.com/input-output-hk/cardano-graphql#overview" - to = "/cardano-components/cardano-graphql/" - status = 301 - -[[redirects]] - from = "https://github.com/input-output-hk/cardano-rosetta#cardano-rosetta" - to = "/cardano-components/cardano-rosetta/" - status = 301 - -[[redirects]] - from = "https://github.com/input-output-hk/cardano-ledger-specs#cardano-ledger" - to = "/cardano-components/cardano-ledger-specs/" - status = 301 - -[[redirects]] - from = "https://github.com/input-output-hk/cardano-db-sync#cardano-db-sync" - to = "/cardano-components/cardano-db-sync/" - status = 301 - -[[redirects]] - from = "https://github.com/input-output-hk/cardano-wallet#overview" - to = "/cardano-components/cardano-wallet/" + from = "/" + to = "/" status = 301 From 71ff3932e692e4f326c01adff76b77fcdc5adafc Mon Sep 17 00:00:00 2001 From: George Clark Date: Mon, 12 Jul 2021 13:13:50 +0100 Subject: [PATCH 6/6] finish redirects --- netlify.toml | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 133 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index 797ae7cd..3c43663b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -203,6 +203,137 @@ status = 301 [[redirects]] - from = "/" - to = "/" + from = "/projects/smash/" + to = "/cardano-components/smash/" status = 301 + +[[redirects]] + from = "/rt-view/rt-view.html" + to = "/cardano-components/cardano-rtview/" + status = 301 + +[[redirects]] + from = "/native-tokens/learn-about-native-tokens.html" + to = "/native-tokens/learn/" + status = 301 + +[[redirects]] + from = "/native-tokens/minimum-ada-value-requirement.html" + to = "/native-tokens/minimum-ada-value-requirement/" + status = 301 + +[[redirects]] + from = "/native-tokens/getting-started-with-native-tokens.html" + to = "/native-tokens/getting-started/" + status = 301 + +[[redirects]] + from = "/native-tokens/exercises.html" + to = "/native-tokens/exercises/" + status = 301 + +[[redirects]] + from = "/native-tokens/faqs.html" + to = "/native-tokens/faqs/" + status = 301 + +[[redirects]] + from = "/marlowe/marlowe-explainer.html" + to = "/marlowe/learn-about-marlowe/" + status = 301 + +[[redirects]] + from = "/marlowe/marlowe-get-started.html" + to = "/marlowe/marlowe-get-started/" + status = 301 + +[[redirects]] + from = "/marlowe/marlowe-lang-guide.html" + to = "/marlowe/marlowe-language-guide/" + status = 301 + +[[redirects]] + from = "/marlowe/get-started-blockly.html" + to = "/marlowe/writing-marlowe-with-blockly/" + status = 301 + +[[redirects]] + from = "/marlowe/get-started-haskell.html" + to = "/marlowe/using-the-haskell-editor/" + status = 301 + +[[redirects]] + from = "/marlowe/get-started-js.html" + to = "/marlowe/using-javascript-editor/" + status = 301 + +[[redirects]] + from = "/rosetta/learn-Rosetta.html" + to = "/rosetta/learn-rosetta/" + status = 301 + +[[redirects]] + from = "/rosetta/get-started-rosetta.html" + to = "/rosetta/get-started-rosetta/" + status = 301 + +[[redirects]] + from = "/rosetta/contribute-rosetta.html" + to = "/rosetta/contribute-rosetta/" + status = 301 + +[[redirects]] + from = "/release-information/comp-matrix.html" + to = "/tools/comp-matrix/" + status = 301 + +[[redirects]] + from = "/cardano-community/cardano-improvement-proposals.html" + to = "/community/cips/" + status = 301 + +[[redirects]] + from = "/cardano-community/providing-feedback.html" + to = "/community/providing-feedback/" + status = 301 + +[[redirects]] + from = "/cardano-community/ambassadors-program.html" + to = "/community/ambassador-program/" + status = 301 + +[[redirects]] + from = "/cardano-community/community-generated-content.html" + to = "/community/community-content/" + status = 301 + +[[redirects]] + from = "/cardano-community/get-support.html" + to = "/community/getting-support/" + status = 301 + +[[redirects]] + from = "/input-output-hk/bech32#bech32-command-line/" + to = "/getting-started/use-cli/" + status = 301 + +[[redirects]] + from = "/input-output-hk/cardano-addresses#overview/" + to = "https://github.com/input-output-hk/cardano-addresses#overview" + status = 301 + +[[redirects]] + from = "/latest/reference/cardano-node-cli-reference.html" + to = "https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/cardano-node-cli-reference.md" + status = 301 + +[[redirects]] + from = "/projects/cardano-serialization-lib/" + to = "cardano-components/cardano-serialization-lib/" + status = 301 + +[[redirects]] + from = "/explore-cardano/glossary.html" + to = "/glossary/" + status = 301 + \ No newline at end of file