Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
redirect to the most commonly hit 404 paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Sep 26, 2023
1 parent a016b0c commit 2570804
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nginx/includes/redirects.conf
Original file line number Diff line number Diff line change
@@ -1 +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"

0 comments on commit 2570804

Please sign in to comment.