Skip to content

Commit

Permalink
chore: add more 301 redirect rules (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao authored Jan 23, 2025
1 parent 8a2b462 commit 040b3cd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions static/_redirects
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/ /introduction 301
/docs /introduction 301
/docs/ /introduction 301
/docs/authorization/api-resources/spring /authorization/api-resources/spring-boot 301
/docs/authorization/api-resources/spring/ /authorization/api-resources/spring-boot 301
/docs/get-started /introduction 301
/docs/get-started/ /introduction 301
/docs/get-started/welcome /introduction/set-up-logto-cloud 301
Expand Down Expand Up @@ -73,6 +75,10 @@
/docs/recipes/inspect-audit-logs/ /developers/audit-logs 301
/docs/recipes/integrate-logto /integrate-logto/integrate-logto-into-your-application 301
/docs/recipes/integrate-logto/ /integrate-logto/integrate-logto-into-your-application 301
/docs/recipes/integrate-logto/machine-to-machine /quick-starts/m2m 301
/docs/recipes/integrate-logto/machine-to-machine/ /quick-starts/m2m 301
/docs/recipes/integrate-logto/react /quick-starts/react 301
/docs/recipes/integrate-logto/react/ /quick-starts/react 301
/docs/recipes/interact-with-account-api /end-user-flows/account-settings/by-account-api 301
/docs/recipes/interact-with-account-api/ /end-user-flows/account-settings/by-account-api 301
/docs/recipes/interact-with-management-api /integrate-logto/interact-with-management-api 301
Expand Down Expand Up @@ -101,6 +107,8 @@
/docs/recipes/multi-factor-auth/ /end-user-flows/mfa 301
/docs/recipes/multi-factor-auth/authenticator-app-otp /end-user-flows/mfa/authenticator-app-otp 301
/docs/recipes/multi-factor-auth/authenticator-app-otp/ /end-user-flows/mfa/authenticator-app-otp 301
/docs/recipes/multi-factor-auth/backup-code /end-user-flows/mfa/backup-codes 301
/docs/recipes/multi-factor-auth/backup-code/ /end-user-flows/mfa/backup-codes 301
/docs/recipes/multi-factor-auth/backup-codes /end-user-flows/mfa/backup-codes 301
/docs/recipes/multi-factor-auth/backup-codes/ /end-user-flows/mfa/backup-codes 301
/docs/recipes/multi-factor-auth/configure-mfa /end-user-flows/mfa/configure-mfa 301
Expand Down Expand Up @@ -137,6 +145,8 @@
/docs/recipes/rbac/manage-permissions-and-roles/ /authorization/role-based-access-control/configure-permissions 301
/docs/recipes/rbac/protect-resource /authorization/role-based-access-control/protect-api-resources-with-rbac 301
/docs/recipes/rbac/protect-resource/ /authorization/role-based-access-control/protect-api-resources-with-rbac 301
/docs/recipes/signing-keys-rotation /developers/signing-keys 301
/docs/recipes/signing-keys-rotation/ /developers/signing-keys 301
/docs/recipes/single-sign-on /end-user-flows/enterprise-sso 301
/docs/recipes/single-sign-on/ /end-user-flows/enterprise-sso 301
/docs/recipes/single-sign-on/configure-sso /end-user-flows/enterprise-sso/sp-initiated-sso#set-up-sp-initiated-sso 301
Expand Down Expand Up @@ -219,6 +229,11 @@
/quick-start/java-spring-boot /quick-starts/java-spring-boot 301
/quick-start/java-spring-boot/ /quick-starts/java-spring-boot 301
/*/quick-start/java-spring-boot /:splat/quick-starts/java-spring-boot 301
/*/docs/tutorials/get-started /:splat/introduction 301
/*/docs/tutorials/get-started/ /:splat/introduction 301
/api https://openapi.logto.io 301
/api/ https://openapi.logto.io 301
/api/* https://openapi.logto.io 301

# Make sure this in the last row as a fallback (since the order matters)
# See https://developers.cloudflare.com/pages/configuration/redirects/#per-file
Expand Down

0 comments on commit 040b3cd

Please sign in to comment.