Skip to content

Commit 329ffb0

Browse files
authored
fix: replace /docs JS redirect with server-side 301 to docs.rustfs.com (#121)
- Delete the client-side redirect shell page (app/docs/page.tsx) - Add a Workers static assets _redirects file: /docs, /docs/ and /docs/* now 301 to docs.rustfs.com at the edge (splat rule keeps deep paths) - Server-side 301 is followed by crawlers and AI agents that don't execute JavaScript, and removes the shell page (duplicated homepage title, no canonical) from the indexable surface
1 parent 1d40b5f commit 329ffb0

2 files changed

Lines changed: 5 additions & 21 deletions

File tree

‎app/docs/page.tsx‎

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎public/_redirects‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Documentation lives on docs.rustfs.com; /docs permanently redirects there.
2+
# Replaces the former client-side redirect page (app/docs/page.tsx).
3+
/docs https://docs.rustfs.com/ 301
4+
/docs/ https://docs.rustfs.com/ 301
5+
/docs/* https://docs.rustfs.com/:splat 301

0 commit comments

Comments
 (0)