From 4c85ec990589aa75c73d9c5319b1505533dff0f5 Mon Sep 17 00:00:00 2001 From: Elliot Voris Date: Wed, 18 Oct 2023 11:28:08 -0500 Subject: [PATCH] send a 301 permanent redirect rather than a 302 temporary one --- nginx/includes/redirects.conf | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/nginx/includes/redirects.conf b/nginx/includes/redirects.conf index 6e06988c..4a49926e 100644 --- a/nginx/includes/redirects.conf +++ b/nginx/includes/redirects.conf @@ -1,22 +1,22 @@ -rewrite "^/api/methods/getLedgerEntry$" "/api/methods/getLedgerEntries" redirect; -rewrite "^/docs/category/examples$" "/docs/category/basic-tutorials" redirect; -rewrite "^/docs/getting-started/run-rpc$" "/docs/reference/rpc" redirect; -rewrite "^/docs/category/tutorials$" "/docs/category/basic-tutorials" redirect; -rewrite "^/docs/tutorials/deploy-to-futurenet$" "/docs/getting-started/deploy-to-testnet" redirect; -rewrite "^/fundamentals-and-concepts/faq$" "/docs/fundamentals-and-concepts/faq" redirect; -rewrite "^/docs/examples/events$" "/docs/basic-tutorials/events" redirect; -rewrite "^/docs/learn/rust-dialect$" "/docs/fundamentals-and-concepts/rust-dialect" redirect; -rewrite "^/docs/reference/command-line$" "/docs/reference/soroban-cli" redirect; -rewrite "^/docs/advanced-tutorials/liquidity-pool-b6f$" "/docs/advanced-tutorials/liquidity-pool" redirect; -rewrite "^/reference/soroban-cli$" "/docs/reference/soroban-cli" redirect; -rewrite "^/docs(/category)?/learn$" "/docs/category/fundamentals-and-concepts" redirect; -rewrite "^/docs/built-in-contracts/token$" "/docs/advanced-tutorials/stellar-asset-contract" redirect; -rewrite "^/docs/getting-started/deploy-to-a-local-network$" "/docs/getting-started/deploy-to-testnet" redirect; -rewrite "^/docs/getting-started/deploy-to-futurenet$" "/docs/getting-started/deploy-to-testnet" redirect; -rewrite "^/api/incomplete-methods$" "/api/methods" redirect; -rewrite "^/docs/tutorials/testing$" "/docs/fundamentals-and-concepts/debugging" redirect; -rewrite "^/docs/category/how-to-guides$" "/docs/category/basic-tutorials" redirect; -rewrite "^/docs/SDKs/rust$" "/docs/reference/sdks/rust" redirect; -rewrite "^/docs/getting-started/connect-freighter-wallet$" "/docs/reference/freighter" redirect; -rewrite "^/docs/common-interfaces/token$" "/docs/reference/interfaces/token-interface" redirect; -rewrite "^/docs/how-to-guides/tokens$" "/docs/advanced-tutorials/tokens" redirect; +rewrite "^/api/methods/getLedgerEntry$" "/api/methods/getLedgerEntries" permanent; +rewrite "^/docs/category/examples$" "/docs/category/basic-tutorials" permanent; +rewrite "^/docs/getting-started/run-rpc$" "/docs/reference/rpc" permanent; +rewrite "^/docs/category/tutorials$" "/docs/category/basic-tutorials" permanent; +rewrite "^/docs/tutorials/deploy-to-futurenet$" "/docs/getting-started/deploy-to-testnet" permanent; +rewrite "^/fundamentals-and-concepts/faq$" "/docs/fundamentals-and-concepts/faq" permanent; +rewrite "^/docs/examples/events$" "/docs/basic-tutorials/events" permanent; +rewrite "^/docs/learn/rust-dialect$" "/docs/fundamentals-and-concepts/rust-dialect" permanent; +rewrite "^/docs/reference/command-line$" "/docs/reference/soroban-cli" permanent; +rewrite "^/docs/advanced-tutorials/liquidity-pool-b6f$" "/docs/advanced-tutorials/liquidity-pool" permanent; +rewrite "^/reference/soroban-cli$" "/docs/reference/soroban-cli" permanent; +rewrite "^/docs(/category)?/learn$" "/docs/category/fundamentals-and-concepts" permanent; +rewrite "^/docs/built-in-contracts/token$" "/docs/advanced-tutorials/stellar-asset-contract" permanent; +rewrite "^/docs/getting-started/deploy-to-a-local-network$" "/docs/getting-started/deploy-to-testnet" permanent; +rewrite "^/docs/getting-started/deploy-to-futurenet$" "/docs/getting-started/deploy-to-testnet" permanent; +rewrite "^/api/incomplete-methods$" "/api/methods" permanent; +rewrite "^/docs/tutorials/testing$" "/docs/fundamentals-and-concepts/debugging" permanent; +rewrite "^/docs/category/how-to-guides$" "/docs/category/basic-tutorials" permanent; +rewrite "^/docs/SDKs/rust$" "/docs/reference/sdks/rust" permanent; +rewrite "^/docs/getting-started/connect-freighter-wallet$" "/docs/reference/freighter" permanent; +rewrite "^/docs/common-interfaces/token$" "/docs/reference/interfaces/token-interface" permanent; +rewrite "^/docs/how-to-guides/tokens$" "/docs/advanced-tutorials/tokens" permanent;