Repository navigation
Conversation
Give every client a permanent redirect from / to /en, and describe the English and Chinese home pages with the install, S3, Kubernetes, erasure coding, and operations topics they cover. Co-authored-by: hector <majinghe@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
rustfs-docs | b9ebd9d | Commit Preview URL Branch Preview URL |
Oct 22 2026, 02:42 AM |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
https://docs.rustfs.com/was a language-picker page withnoindex, follow, so links to the docs root never landed on an indexable document. Language docs already live at/en,/zh, and the other locale paths, and locale-less paths such as/installationalready 301 to English.This change makes
/a permanent redirect to/en(this site's canonical form, without a trailing slash) and strengthens the English and Chinese home-page metadata.public/_redirectsand the redirect build pin/and/index.htmlto/enwith status 301. Cloudflare static assets apply_redirectsbefore the file, so the chooser is no longer the root response. The worker reads the same file.public/index.htmlstays a noindex fallback, with a canonical link tohttps://docs.rustfs.com/en. Its Accept-Language script still runs only if a host serves that document instead of the redirect./enpriority1and/zhpriority0.9, addsx-defaultto the English URL, and does not list the thin root.robots.txtstill allows/and points at the sitemap.Verification
Local worker in front of
dist/public(same_redirectsthe build uploads):English landing (
/en):RustFS Documentation | S3-Compatible Object StorageInstall and operate RustFS, an S3-compatible distributed object storage system, including the S3 API, Kubernetes, erasure coding, MinIO-compatible migration, and cluster operations.Chinese landing (
/zh):RustFS 文档 | 兼容 S3 的对象存储了解如何安装和运维兼容 S3 的分布式对象存储 RustFS,包括 S3 API、Kubernetes、纠删码、兼容 MinIO 的迁移和集群运维。Checked in a browser after the redirect: the English and Chinese home pages render those titles and descriptions on desktop and a 390px-wide viewport, and the install cards still show.
Sitemap after build: 940 URLs, no
https://docs.rustfs.com/entry,/enpriority 1,/zhpriority 0.9,hreflang="x-default"points at/en. Three dynamic redirect rules, under Cloudflare's limit of 100.Commands:
npm run docs:check,npm run build,npm run test:worker(18 passing, including the built_redirects), andnpm run test:search(21 passing).