-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
/
Copy path_redirects
59 lines (46 loc) · 2.96 KB
/
_redirects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Server redirects for Netlify
# Renamed doc routes
/docs/docusaurus.config.js /docs/api/docusaurus-config
/docs/next/docusaurus.config.js /docs/next/api/docusaurus-config
/docs/lifecycle-apis /docs/api/plugin-methods/
/docs/next/lifecycle-apis /docs/next/api/plugin-methods/
/docs/using-themes /docs/swizzling
/docs/next/using-themes /docs/next/swizzling
/docs/advanced/swizzling /docs/swizzling
/docs/next/advanced/swizzling /docs/next/swizzling
/docs/markdown-features/inline-toc /docs/markdown-features/toc
/docs/next/markdown-features/inline-toc /docs/next/markdown-features/toc
/docs/markdown-features/headings /docs/markdown-features/toc
/docs/next/markdown-features/headings /docs/next/markdown-features/toc
# v2.docusaurus.io domain redirect after we put v2 on docusaurus.io
https://v2.docusaurus.io/* https://docusaurus.io/:splat 301!
# Redirect older Docusaurus v1 links that do not exist anymore in v2
https://docusaurus.io/docs/en/* https://v1.docusaurus.io/docs/en/:splat
https://docusaurus.io/docs/fr/* https://v1.docusaurus.io/docs/fr/:splat
https://docusaurus.io/docs/ko/* https://v1.docusaurus.io/docs/ko/:splat
https://docusaurus.io/docs/ro/* https://v1.docusaurus.io/docs/ro/:splat
https://docusaurus.io/docs/ru/* https://v1.docusaurus.io/docs/ru/:splat
https://docusaurus.io/docs/pt-br/* https://v1.docusaurus.io/docs/pt-br/:splat
https://docusaurus.io/docs/zh-cn/* https://v1.docusaurus.io/docs/zh-cn/:splat
# Redirect Docusaurus v1 blog RSS feed
/blog/feed.xml /blog/rss.xml
# Feature requests redirects
/feedback/* /feature-requests/:splat 301!
/fr/feedback/* /fr/feature-requests/:splat 301!
/pt-BR/feedback/* /pt-BR/feature-requests/:splat 301!
/ko/feedback/* /ko/feature-requests/:splat 301!
/zh-CN/feedback/* /zh-CN/feature-requests/:splat 301!
/feature-requests/* /feature-requests 200
/fr/feature-requests/* /fr/feature-requests 200
/pt-BR/feature-requests/* /pt-BR/feature-requests 200
/ko/feature-requests/* /ko/feature-requests 200
/zh-CN/feature-requests/* /zh-CN/feature-requests 200
# FALLBACK: PUT THIS LAST (rules above are more important)
# Redirect each country sub-path to appropriate localized 404 file
# Note: the 404 won't be served if the path match an existing static file
# Note: useless for /* => Netlify already serve /404.html
# See https://docs.netlify.com/routing/redirects/redirect-options/#custom-404-page-handling
/fr/* /fr/404 404
/pt-BR/* /pt-BR/404 404
/ko/* /ko/404 404
/zh-CN/* /zh-CN/404 404