diff --git a/nginx/includes/redirects.conf b/nginx/includes/redirects.conf index b3c87be96..7af987698 100644 --- a/nginx/includes/redirects.conf +++ b/nginx/includes/redirects.conf @@ -36,12 +36,12 @@ rewrite ^/docs/fundamentals-and-concepts/testnet-and-pubnet$ "/docs/learn/fundam rewrite ^/api$ "/docs/data/horizon" permanent; # moving /api/* locations to /api/horizon (leaving /api intact for the "overview page") rewrite ^/api(/(?!horizon|(anchor|stellar-disbursement)-platform).*)$ "/docs/data/horizon$1" permanent; -rewrite ^/(network|api)/horizon(.*)$ "/docs/data/horizon/$2" permanent; -rewrite ^/(network|api)/((anchor|stellar-disbursement)-platform)(.*)$ "/platforms/$2$4" permanent; rewrite ^/network/horizon/(resources|structure|aggregations|errors)(.*)$ "/docs/data/horizon/api-reference/$1$2" permanent; -rewrite ^/network/soroban-rpc/(methods|json-rpc|pagination)(.*)$ "/docs/data/rpc/api-reference/$1$2" permanent; +rewrite ^/(network|api)/horizon(.*)$ "/docs/data/horizon$2" permanent; rewrite ^/network/anchor-platform/(resources|callbacks|custody-server|rpc)(.*)$ "/platforms/anchor-platform/api-reference/$1$2" permanent; rewrite ^/network/stellar-disbursement-platform/resources(.*)$ "/platforms/stellar-disbursement-platform/api-reference$1" permanent; +rewrite ^/(network|api)/((anchor|stellar-disbursement)-platform)(.*)$ "/platforms/$2$4" permanent; +rewrite ^/network/soroban-rpc/(methods|json-rpc|pagination)(.*)$ "/docs/data/rpc/api-reference/$1$2" permanent; # moving /ap_api locations to /api/anchor-platform rewrite ^/ap_api(.*)?$ "/platforms/anchor-platform$1" permanent; rewrite ^/docs/category/anchor-platform$ "/platforms/anchor-platform/admin-guide" permanent; @@ -69,8 +69,8 @@ rewrite ^/docs/learn$ "/docs/learn/fundamentals" permanent; rewrite ^/docs/learn/smart-contract-internals/fees-and-metering$ "/docs/learn/fundamentals/fees-resource-limits-metering" permanent; rewrite ^/docs/learn/migrate/introduction-to-solidity-and-rust$ "/docs/learn/migrate/evm/introduction-to-solidity-and-rust" permanent; rewrite ^/docs/learn/smart-contract-internals/state-expiration$ "/docs/learn/smart-contract-internals/state-archival" permanent; -rewrite ^/platforms/soroban-rpc/methods(.*)$ "/docs/data/rpc/methods$1" permanent; -rewrite ^/network/soroban-rpc/getEvents$ "/docs/data/rpc/methods/getEvents" permanent; +rewrite ^/platforms/soroban-rpc/methods(.*)$ "/docs/data/rpc/api-reference/methods$1" permanent; +rewrite ^/network/soroban-rpc/getEvents$ "/docs/data/rpc/api-reference/methods/getEvents" permanent; rewrite ^/docs/smart-contracts/example-contracts/stellar-asset-contract$ "/docs/smart-contracts/tokens/stellar-asset-contract" permanent; rewrite ^/docs/smart-contracts/faq "/docs/smart-contracts#soroban-faqs" permanent; rewrite ^/docs/learn/smart-contract-internals/faq "/docs/smart-contracts#soroban-faqs" permanent; @@ -125,6 +125,7 @@ rewrite ^/docs/learn/encyclopedia/signatures-multisig$ "/docs/learn/encyclopedia rewrite ^/docs/learn/encyclopedia/sponsored-reserves$ "/docs/learn/encyclopedia/transactions-specialized/sponsored-reserves" permanent; rewrite ^/docs/learn/encyclopedia/xdr$ "/docs/learn/encyclopedia/data-format/xdr" permanent; rewrite ^/network/core-node(.*)$ "/docs/validators$1" permanent; +rewrite ^/network/hubble/(connecting|optimizing-queries|viewing-metadata)(.*)$ "/docs/data/hubble/analyst-guide/$1$2" permanent; rewrite ^/network/hubble(.*) "/docs/data/hubble$1" permanent; rewrite ^/network/soroban-rpc(.*) "/docs/data/rpc$1" permanent; rewrite ^/network/horizon(.*) "/docs/data/horizon$1" permanent;