diff --git a/_index.md b/_index.md
index 4880283e963bf..4bddd7864a20d 100644
--- a/_index.md
+++ b/_index.md
@@ -2,6 +2,7 @@
title: TiDB Introduction
summary: Learn how to quickly start a TiDB cluster.
category: introduction
+aliases: ['/docs/v4.0/_index/']
---
# TiDB Introduction
diff --git a/adopters.md b/adopters.md
index 2c049a89ea03a..d8b127fe20da0 100644
--- a/adopters.md
+++ b/adopters.md
@@ -4,6 +4,7 @@ summary: Learn about the list of TiDB adopters in various industries.
category: adopters
aliases: ['/docs/adopters/']
i18n_link: "https://pingcap.com/cases-cn/"
+aliases: ['/docs/v4.0/adopters/']
---
# TiDB Adopters
diff --git a/alert-rules.md b/alert-rules.md
index 71cb7c3372220..70b57c69fb95c 100644
--- a/alert-rules.md
+++ b/alert-rules.md
@@ -2,7 +2,7 @@
title: TiDB Cluster Alert Rules
summary: Learn the alert rules in a TiDB cluster.
category: reference
-aliases: ['/docs/stable/reference/alert-rules/']
+aliases: ['/docs/v4.0/alert-rules/','/docs/stable/reference/alert-rules/']
---
diff --git a/architecture.md b/architecture.md
index aafafe5a03768..cd12037a130f2 100644
--- a/architecture.md
+++ b/architecture.md
@@ -2,6 +2,7 @@
title: TiDB Architecture
summary: The key architecture components of the TiDB platform
category: introduction
+aliases: ['/docs/v4.0/architecture/']
---
# TiDB Architecture
diff --git a/auto-increment.md b/auto-increment.md
index 8d1a66d8528e5..0cb2781d89335 100644
--- a/auto-increment.md
+++ b/auto-increment.md
@@ -2,6 +2,7 @@
title: AUTO_INCREMENT
summary: Learn the `AUTO_INCREMENT` column attribute of TiDB.
category: reference
+aliases: ['/docs/v4.0/auto-increment/']
---
# AUTO_INCREMENT
diff --git a/auto-random.md b/auto-random.md
index 7f0d132c4d10f..bec6d744c19af 100644
--- a/auto-random.md
+++ b/auto-random.md
@@ -2,7 +2,7 @@
title: AUTO_RANDOM
summary: Learn the AUTO_RANDOM attribute.
category: reference
-aliases: ['/docs/stable/reference/sql/attributes/auto-random/']
+aliases: ['/docs/v4.0/auto-random/','/docs/stable/reference/sql/attributes/auto-random/']
---
# AUTO_RANDOM New in v3.1.0
diff --git a/backup-and-restore-using-mydumper-lightning.md b/backup-and-restore-using-mydumper-lightning.md
index 7301e26324819..eda583aa015bd 100644
--- a/backup-and-restore-using-mydumper-lightning.md
+++ b/backup-and-restore-using-mydumper-lightning.md
@@ -1,7 +1,7 @@
---
title: Use Mydumper and TiDB Lightning for Backup and Restoration
category: how-to
-aliases: ['/docs/stable/how-to/maintain/backup-and-restore/mydumper-lightning/']
+aliases: ['/docs/v4.0/backup-and-restore-using-mydumper-lightning/','/docs/stable/how-to/maintain/backup-and-restore/mydumper-lightning/']
---
# Use Mydumper and TiDB Lightning for Data Backup and Restoration
diff --git a/basic-sql-operations.md b/basic-sql-operations.md
index 5948a83f25c51..d04aaf017da64 100644
--- a/basic-sql-operations.md
+++ b/basic-sql-operations.md
@@ -2,7 +2,7 @@
title: Explore SQL with TiDB
summary: Learn about the basic SQL statements for the TiDB database.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/explore-sql/']
+aliases: ['/docs/v4.0/basic-sql-operations/','/docs/stable/how-to/get-started/explore-sql/']
---
# Explore SQL with TiDB
diff --git a/benchmark/benchmark-sysbench-v2.md b/benchmark/benchmark-sysbench-v2.md
index f3ea6444825f9..25b58312c7720 100644
--- a/benchmark/benchmark-sysbench-v2.md
+++ b/benchmark/benchmark-sysbench-v2.md
@@ -1,7 +1,7 @@
---
title: TiDB Sysbench Performance Test Report -- v2.0.0 vs. v1.0.0
category: benchmark
-aliases: ['/docs/stable/benchmark/sysbench-v2/']
+aliases: ['/docs/v4.0/benchmark/benchmark-sysbench-v2/','/docs/stable/benchmark/sysbench-v2/']
---
# TiDB Sysbench Performance Test Report -- v2.0.0 vs. v1.0.0
diff --git a/benchmark/benchmark-sysbench-v3.md b/benchmark/benchmark-sysbench-v3.md
index 76f2847871702..5b2c35174588a 100644
--- a/benchmark/benchmark-sysbench-v3.md
+++ b/benchmark/benchmark-sysbench-v3.md
@@ -1,7 +1,7 @@
---
title: TiDB Sysbench Performance Test Report -- v2.1 vs. v2.0
category: benchmark
-aliases: ['/docs/stable/benchmark/sysbench-v3/']
+aliases: ['/docs/v4.0/benchmark/benchmark-sysbench-v3/','/docs/stable/benchmark/sysbench-v3/']
---
# TiDB Sysbench Performance Test Report -- v2.1 vs. v2.0
diff --git a/benchmark/benchmark-sysbench-v4-vs-v3.md b/benchmark/benchmark-sysbench-v4-vs-v3.md
index 6545927a89e29..78f55df909a5c 100644
--- a/benchmark/benchmark-sysbench-v4-vs-v3.md
+++ b/benchmark/benchmark-sysbench-v4-vs-v3.md
@@ -2,6 +2,7 @@
title: TiDB Sysbench Performance Test Report -- v4.0 vs. v3.0
summary: Compare the Sysbench performance of TiDB 4.0 and TiDB 3.0.
category: benchmark
+aliases: ['/docs/v4.0/benchmark/benchmark-sysbench-v4-vs-v3/']
---
# TiDB Sysbench Performance Test Report -- v4.0 vs. v3.0
diff --git a/benchmark/benchmark-tidb-using-sysbench.md b/benchmark/benchmark-tidb-using-sysbench.md
index e78cff6462f91..ecc8d3a6d6a0e 100644
--- a/benchmark/benchmark-tidb-using-sysbench.md
+++ b/benchmark/benchmark-tidb-using-sysbench.md
@@ -1,7 +1,7 @@
---
title: How to Test TiDB Using Sysbench
category: benchmark
-aliases: ['/docs/stable/benchmark/how-to-run-sysbench/']
+aliases: ['/docs/v4.0/benchmark/benchmark-tidb-using-sysbench/','/docs/stable/benchmark/how-to-run-sysbench/']
---
# How to Test TiDB Using Sysbench
diff --git a/benchmark/benchmark-tidb-using-tpcc.md b/benchmark/benchmark-tidb-using-tpcc.md
index f32991c50cd1a..aa54a129c6ec2 100644
--- a/benchmark/benchmark-tidb-using-tpcc.md
+++ b/benchmark/benchmark-tidb-using-tpcc.md
@@ -1,7 +1,7 @@
---
title: How to Run TPC-C Test on TiDB
category: benchmark
-aliases: ['/docs/stable/benchmark/how-to-run-tpcc/']
+aliases: ['/docs/v4.0/benchmark/benchmark-tidb-using-tpcc/','/docs/stable/benchmark/how-to-run-tpcc/']
---
# How to Run TPC-C Test on TiDB
diff --git a/benchmark/benchmark-tpch.md b/benchmark/benchmark-tpch.md
index 07e08daab53b9..fb68d6c15b265 100644
--- a/benchmark/benchmark-tpch.md
+++ b/benchmark/benchmark-tpch.md
@@ -1,7 +1,7 @@
---
title: TiDB TPC-H 50G Performance Test Report V2.0
category: benchmark
-aliases: ['/docs/stable/benchmark/tpch/']
+aliases: ['/docs/v4.0/benchmark/benchmark-tpch/','/docs/stable/benchmark/tpch/']
---
# TiDB TPC-H 50G Performance Test Report
diff --git a/benchmark/online-workloads-and-add-index-operations.md b/benchmark/online-workloads-and-add-index-operations.md
index d239d32ff2551..fe34224ab9df2 100644
--- a/benchmark/online-workloads-and-add-index-operations.md
+++ b/benchmark/online-workloads-and-add-index-operations.md
@@ -2,7 +2,7 @@
title: Interaction Test on Online Workloads and `ADD INDEX` Operations
summary: This document tests the interaction effects between online workloads and `ADD INDEX` operations.
category: benchmark
-aliases: ['/docs/stable/benchmark/add-index-with-load/']
+aliases: ['/docs/v4.0/benchmark/online-workloads-and-add-index-operations/','/docs/stable/benchmark/add-index-with-load/']
---
# Interaction Test on Online Workloads and `ADD INDEX` Operations
diff --git a/benchmark/v3.0-performance-benchmarking-with-sysbench.md b/benchmark/v3.0-performance-benchmarking-with-sysbench.md
index 7209b7c195b5a..e87c181d12417 100644
--- a/benchmark/v3.0-performance-benchmarking-with-sysbench.md
+++ b/benchmark/v3.0-performance-benchmarking-with-sysbench.md
@@ -1,7 +1,7 @@
---
title: TiDB Sysbench Performance Test Report -- v3.0 vs. v2.1
category: benchmark
-aliases: ['/docs/stable/benchmark/sysbench-v4/']
+aliases: ['/docs/v4.0/benchmark/v3.0-performance-benchmarking-with-sysbench/','/docs/stable/benchmark/sysbench-v4/']
---
# TiDB Sysbench Performance Test Report -- v3.0 vs. v2.1
diff --git a/benchmark/v3.0-performance-benchmarking-with-tpcc.md b/benchmark/v3.0-performance-benchmarking-with-tpcc.md
index c5998185e968d..0fd22ccc9f5a5 100644
--- a/benchmark/v3.0-performance-benchmarking-with-tpcc.md
+++ b/benchmark/v3.0-performance-benchmarking-with-tpcc.md
@@ -1,7 +1,7 @@
---
title: TiDB TPC-C Performance Test Report -- v3.0 vs. v2.1
category: benchmark
-aliases: ['/docs/stable/benchmark/tpcc/']
+aliases: ['/docs/v4.0/benchmark/v3.0-performance-benchmarking-with-tpcc/','/docs/stable/benchmark/tpcc/']
---
# TiDB TPC-C Performance Test Report -- v3.0 vs. v2.1
diff --git a/benchmark/v4.0-performance-benchmarking-with-tpcc.md b/benchmark/v4.0-performance-benchmarking-with-tpcc.md
index 7d8fdd9419724..314a846e330dc 100644
--- a/benchmark/v4.0-performance-benchmarking-with-tpcc.md
+++ b/benchmark/v4.0-performance-benchmarking-with-tpcc.md
@@ -2,7 +2,7 @@
title: TiDB TPC-C Performance Test Report -- v4.0 vs. v3.0
summary: Compare the TPC-C performance of TiDB 4.0 and TiDB 3.0 using BenchmarkSQL.
category: benchmark
-aliases: ['/docs/stable/benchmark/tpcc-v2/']
+aliases: ['/docs/v4.0/benchmark/v4.0-performance-benchmarking-with-tpcc/','/docs/stable/benchmark/tpcc-v2/']
---
# TiDB TPC-C Performance Test Report -- v4.0 vs. v3.0
diff --git a/benchmark/v4.0-performance-benchmarking-with-tpch.md b/benchmark/v4.0-performance-benchmarking-with-tpch.md
index cf1860900acee..b897988dac19e 100644
--- a/benchmark/v4.0-performance-benchmarking-with-tpch.md
+++ b/benchmark/v4.0-performance-benchmarking-with-tpch.md
@@ -2,6 +2,7 @@
title: TiDB TPC-H Performance Test Report -- v4.0 vs. v3.0
summary: Compare the TPC-H performance of TiDB 4.0 and TiDB 3.0.
category: benchmark
+aliases: ['/docs/v4.0/benchmark/v4.0-performance-benchmarking-with-tpch/']
---
# TiDB TPC-H Performance Test Report -- v4.0 vs. v3.0
diff --git a/best-practices/grafana-monitor-best-practices.md b/best-practices/grafana-monitor-best-practices.md
index 19ec20fe61b23..8feb6f9afeffc 100644
--- a/best-practices/grafana-monitor-best-practices.md
+++ b/best-practices/grafana-monitor-best-practices.md
@@ -2,7 +2,7 @@
title: Best Practices for Monitoring TiDB Using Grafana
summary: Learn seven tips for efficiently using Grafana to monitor TiDB.
category: reference
-aliases: ['/docs/stable/reference/best-practices/grafana-monitor/']
+aliases: ['/docs/v4.0/best-practices/grafana-monitor-best-practices/','/docs/stable/reference/best-practices/grafana-monitor/']
---
# Best Practices for Monitoring TiDB Using Grafana
diff --git a/best-practices/haproxy-best-practices.md b/best-practices/haproxy-best-practices.md
index 9b00b4794fe6a..7a5336b4c4cec 100644
--- a/best-practices/haproxy-best-practices.md
+++ b/best-practices/haproxy-best-practices.md
@@ -2,7 +2,7 @@
title: Best Practices for Using HAProxy in TiDB
summary: This document describes best practices for configuration and usage of HAProxy in TiDB.
category: reference
-aliases: ['/docs/stable/reference/best-practices/haproxy/']
+aliases: ['/docs/v4.0/best-practices/haproxy-best-practices/','/docs/stable/reference/best-practices/haproxy/']
---
# Best Practices for Using HAProxy in TiDB
diff --git a/best-practices/high-concurrency-best-practices.md b/best-practices/high-concurrency-best-practices.md
index c397520097e30..93f81b0dfe22e 100644
--- a/best-practices/high-concurrency-best-practices.md
+++ b/best-practices/high-concurrency-best-practices.md
@@ -2,7 +2,7 @@
title: Highly Concurrent Write Best Practices
summary: Learn best practices for highly-concurrent write-intensive workloads in TiDB.
category: reference
-aliases: ['/docs/stable/reference/best-practices/high-concurrency/']
+aliases: ['/docs/v4.0/best-practices/high-concurrency-best-practices/','/docs/stable/reference/best-practices/high-concurrency/']
---
# Highly Concurrent Write Best Practices
diff --git a/best-practices/java-app-best-practices.md b/best-practices/java-app-best-practices.md
index f839d0a3f3f53..8c20287f3fbb6 100644
--- a/best-practices/java-app-best-practices.md
+++ b/best-practices/java-app-best-practices.md
@@ -2,7 +2,7 @@
title: Best Practices for Developing Java Applications with TiDB
summary: Learn the best practices for developing Java applications with TiDB.
category: reference
-aliases: ['/docs/stable/reference/best-practices/java-app/']
+aliases: ['/docs/v4.0/best-practices/java-app-best-practices/','/docs/stable/reference/best-practices/java-app/']
---
# Best Practices for Developing Java Applications with TiDB
diff --git a/best-practices/massive-regions-best-practices.md b/best-practices/massive-regions-best-practices.md
index 77a62e6b5d26f..33290c9cb6c06 100644
--- a/best-practices/massive-regions-best-practices.md
+++ b/best-practices/massive-regions-best-practices.md
@@ -2,7 +2,7 @@
title: Best Practices for TiKV Performance Tuning with Massive Regions
summary: Learn how to tune the performance of TiKV with a massive amount of Regions.
category: reference
-aliases: ['/docs/stable/reference/best-practices/massive-regions/']
+aliases: ['/docs/v4.0/best-practices/massive-regions-best-practices/','/docs/stable/reference/best-practices/massive-regions/']
---
# Best Practices for TiKV Performance Tuning with Massive Regions
diff --git a/best-practices/pd-scheduling-best-practices.md b/best-practices/pd-scheduling-best-practices.md
index 024f40f85e229..a93acd9539152 100644
--- a/best-practices/pd-scheduling-best-practices.md
+++ b/best-practices/pd-scheduling-best-practices.md
@@ -2,7 +2,7 @@
title: PD Scheduling Best Practices
summary: Learn best practice and strategy for PD scheduling.
category: reference
-aliases: ['/docs/stable/reference/best-practices/pd-scheduling/']
+aliases: ['/docs/v4.0/best-practices/pd-scheduling-best-practices/','/docs/stable/reference/best-practices/pd-scheduling/']
---
# PD Scheduling Best Practices
diff --git a/br/backup-and-restore-faq.md b/br/backup-and-restore-faq.md
index 3703ac0733913..07c020b4b5bc4 100644
--- a/br/backup-and-restore-faq.md
+++ b/br/backup-and-restore-faq.md
@@ -2,6 +2,7 @@
title: Backup & Restore FAQ
summary: Learn about Frequently Asked Questions (FAQ) and the solutions of BR.
category: FAQ
+aliases: ['/docs/v4.0/br/backup-and-restore-faq/']
---
# Backup & Restore FAQ
diff --git a/br/backup-and-restore-storages.md b/br/backup-and-restore-storages.md
index 973f06a876715..9dcdfd8d3b8a6 100644
--- a/br/backup-and-restore-storages.md
+++ b/br/backup-and-restore-storages.md
@@ -2,6 +2,7 @@
title: BR storages
summary: Describes the storage URL format used in BR.
category: reference
+aliases: ['/docs/v4.0/br/backup-and-restore-storages/']
---
# BR storages
diff --git a/br/backup-and-restore-tool.md b/br/backup-and-restore-tool.md
index 4d33d7e2aa725..730c80957431e 100644
--- a/br/backup-and-restore-tool.md
+++ b/br/backup-and-restore-tool.md
@@ -2,7 +2,7 @@
title: Use BR to Backup and Restore Data
summary: Learn how to back up and restore data of the TiDB cluster using BR.
category: how-to
-aliases: ['/docs/stable/reference/tools/br/br/']
+aliases: ['/docs/v4.0/br/backup-and-restore-tool/','/docs/stable/reference/tools/br/br/']
---
# Use BR to Back up and Restore Data
diff --git a/br/backup-and-restore-use-cases.md b/br/backup-and-restore-use-cases.md
index e0982355281c1..643a68fa57e6d 100644
--- a/br/backup-and-restore-use-cases.md
+++ b/br/backup-and-restore-use-cases.md
@@ -2,7 +2,7 @@
title: BR Usage Scenarios
summary: Learn the scenarios of backing up and restoring data using BR.
category: how-to
-aliases: ['/docs/stable/reference/tools/br/use-cases/']
+aliases: ['/docs/v4.0/br/backup-and-restore-use-cases/','/docs/stable/reference/tools/br/use-cases/']
---
# BR Usage Scenarios
diff --git a/certificate-authentication.md b/certificate-authentication.md
index 464c4ec43b79d..61f3af539f5b7 100644
--- a/certificate-authentication.md
+++ b/certificate-authentication.md
@@ -2,7 +2,7 @@
title: Certificate-Based Authentication for Login
summary: Learn the certificate-based authentication used for login.
category: reference
-aliases: ['/docs/stable/reference/security/cert-based-authentication/']
+aliases: ['/docs/v4.0/certificate-authentication/','/docs/stable/reference/security/cert-based-authentication/']
---
# Certificate-Based Authentication for Login
diff --git a/character-set-and-collation.md b/character-set-and-collation.md
index f7fd3adc96326..83ae1cecc7ef7 100644
--- a/character-set-and-collation.md
+++ b/character-set-and-collation.md
@@ -2,7 +2,7 @@
title: Character Set and Collation
summary: Learn about the supported character sets and collations in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/characterset-and-collation/','/docs/stable/reference/sql/character-set/']
+aliases: ['/docs/v4.0/character-set-and-collation/','/docs/stable/reference/sql/characterset-and-collation/','/docs/stable/reference/sql/character-set/']
---
# Character Set and Collation
diff --git a/check-before-deployment.md b/check-before-deployment.md
index 7cfe54ef610c5..f09ccb7b76777 100644
--- a/check-before-deployment.md
+++ b/check-before-deployment.md
@@ -2,6 +2,7 @@
title: TiDB Environment and System Configuration Check
summary: Learn the environment check operations before deploying TiDB.
category: how-to
+aliases: ['/docs/v4.0/check-before-deployment/']
---
# TiDB Environment and System Configuration Check
diff --git a/check-cluster-status-using-sql-statements.md b/check-cluster-status-using-sql-statements.md
index b3c7eb248da59..1e829bc15b014 100644
--- a/check-cluster-status-using-sql-statements.md
+++ b/check-cluster-status-using-sql-statements.md
@@ -2,7 +2,7 @@
title: Check the TiDB Cluster Status Using SQL Statements
summary: This document introduces that TiDB offers some SQL statements and system tables to check the TiDB cluster status.
category: reference
-aliases: ['/docs/stable/reference/performance/check-cluster-status-using-sql-statements/']
+aliases: ['/docs/v4.0/check-cluster-status-using-sql-statements/','/docs/stable/reference/performance/check-cluster-status-using-sql-statements/']
---
# Check the TiDB Cluster Status Using SQL Statements
diff --git a/command-line-flags-for-pd-configuration.md b/command-line-flags-for-pd-configuration.md
index 6d387dff758fa..f1a1e0d52ee03 100644
--- a/command-line-flags-for-pd-configuration.md
+++ b/command-line-flags-for-pd-configuration.md
@@ -2,7 +2,7 @@
title: PD Configuration Flags
summary: Learn some configuration flags of PD.
category: reference
-aliases: ['/docs/stable/reference/configuration/pd-server/configuration/']
+aliases: ['/docs/v4.0/command-line-flags-for-pd-configuration/','/docs/stable/reference/configuration/pd-server/configuration/']
---
# PD Configuration Flags
diff --git a/command-line-flags-for-tidb-configuration.md b/command-line-flags-for-tidb-configuration.md
index 72531dd46ef52..4bbfe689e801e 100644
--- a/command-line-flags-for-tidb-configuration.md
+++ b/command-line-flags-for-tidb-configuration.md
@@ -2,7 +2,7 @@
title: Configuration Options
summary: Learn the configuration options in TiDB.
category: reference
-aliases: ['/docs/stable/reference/configuration/tidb-server/configuration/']
+aliases: ['/docs/v4.0/command-line-flags-for-tidb-configuration/','/docs/stable/reference/configuration/tidb-server/configuration/']
---
# Configuration Options
diff --git a/command-line-flags-for-tikv-configuration.md b/command-line-flags-for-tikv-configuration.md
index 06f9d6c8f123f..9d94f60406ed0 100644
--- a/command-line-flags-for-tikv-configuration.md
+++ b/command-line-flags-for-tikv-configuration.md
@@ -2,7 +2,7 @@
title: TiKV Configuration Flags
summary: Learn some configuration flags of TiKV.
category: reference
-aliases: ['/docs/stable/reference/configuration/tikv-server/configuration/']
+aliases: ['/docs/v4.0/command-line-flags-for-tikv-configuration/','/docs/stable/reference/configuration/tikv-server/configuration/']
---
# TiKV Configuration Flags
diff --git a/comment-syntax.md b/comment-syntax.md
index 226659fa94569..e270993b7f2cd 100644
--- a/comment-syntax.md
+++ b/comment-syntax.md
@@ -2,7 +2,7 @@
title: Comment Syntax
summary: Learn about the three comment styles in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/language-structure/comment-syntax/']
+aliases: ['/docs/v4.0/comment-syntax/','/docs/stable/reference/sql/language-structure/comment-syntax/']
---
# Comment Syntax
diff --git a/community.md b/community.md
index b3ed5695a2f44..cc9c24d67b013 100644
--- a/community.md
+++ b/community.md
@@ -2,6 +2,7 @@
title: Connect with us
summary: Learn about how to connect with us.
category: community
+aliases: ['/docs/v4.0/community/']
---
# Connect with us
diff --git a/configure-memory-usage.md b/configure-memory-usage.md
index eae5ad3722f0f..e9e09aec071c1 100644
--- a/configure-memory-usage.md
+++ b/configure-memory-usage.md
@@ -2,7 +2,7 @@
title: TiDB Memory Control
summary: Learn how to configure the memory quota of a query and avoid OOM (out of memory).
category: how-to
-aliases: ['/docs/stable/how-to/configure/memory-control/']
+aliases: ['/docs/v4.0/configure-memory-usage/','/docs/stable/how-to/configure/memory-control/']
---
# TiDB Memory Control
diff --git a/configure-placement-rules.md b/configure-placement-rules.md
index f1261b738b778..bef721de00d32 100644
--- a/configure-placement-rules.md
+++ b/configure-placement-rules.md
@@ -2,7 +2,7 @@
title: Placement Rules
summary: Learn how to configure Placement Rules.
category: how-to
-aliases: ['/docs/stable/how-to/configure/placement-rules/']
+aliases: ['/docs/v4.0/configure-placement-rules/','/docs/stable/how-to/configure/placement-rules/']
---
# Placement Rules
diff --git a/configure-time-zone.md b/configure-time-zone.md
index c81e8bb2b2051..a11076ca84e06 100644
--- a/configure-time-zone.md
+++ b/configure-time-zone.md
@@ -2,7 +2,7 @@
title: Time Zone Support
summary: Learn how to set the time zone and its format.
category: how-to
-aliases: ['/docs/stable/how-to/configure/time-zone/']
+aliases: ['/docs/v4.0/configure-time-zone/','/docs/stable/how-to/configure/time-zone/']
---
# Time Zone Support
diff --git a/connectors-and-apis.md b/connectors-and-apis.md
index 1a40285780495..ab63953674440 100644
--- a/connectors-and-apis.md
+++ b/connectors-and-apis.md
@@ -2,7 +2,7 @@
title: Connectors and APIs
summary: Learn about the connectors and APIs.
category: reference
-aliases: ['/docs/stable/reference/supported-clients/']
+aliases: ['/docs/v4.0/connectors-and-apis/','/docs/stable/reference/supported-clients/']
---
# Connectors and APIs
diff --git a/constraints.md b/constraints.md
index b5f2303b50ecc..e1e30ac4ce1ad 100644
--- a/constraints.md
+++ b/constraints.md
@@ -2,7 +2,7 @@
title: Constraints
summary: Learn how SQL Constraints apply to TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/constraints/']
+aliases: ['/docs/v4.0/constraints/','/docs/stable/reference/sql/constraints/']
---
# Constraints
diff --git a/contribute.md b/contribute.md
index 9c67820bbb19c..91b5b390f0f4a 100644
--- a/contribute.md
+++ b/contribute.md
@@ -2,6 +2,7 @@
title: Contribute
summary: Learn how to contribute to the TiDB database.
category: how-to
+aliases: ['/docs/v4.0/contribute/']
---
# Contribute
diff --git a/coprocessor-cache.md b/coprocessor-cache.md
index a6bfb10d15cac..b8bb7592cd574 100644
--- a/coprocessor-cache.md
+++ b/coprocessor-cache.md
@@ -2,6 +2,7 @@
title: Coprocessor Cache
summary: Learn the features of Coprocessor Cache.
category: reference
+aliases: ['/docs/v4.0/coprocessor-cache/']
---
# Coprocessor Cache
diff --git a/daily-check.md b/daily-check.md
index c118ebd015515..ec5e744d16990 100644
--- a/daily-check.md
+++ b/daily-check.md
@@ -2,6 +2,7 @@
title: Daily Check
summary: Learn about performance indicators of the TiDB cluster.
category: reference
+aliases: ['/docs/v4.0/daily-check/']
---
# Daily Check
diff --git a/dashboard/dashboard-access.md b/dashboard/dashboard-access.md
index cf1c904226103..aed8ed7eed245 100644
--- a/dashboard/dashboard-access.md
+++ b/dashboard/dashboard-access.md
@@ -2,6 +2,7 @@
title: Access TiDB Dashboard
summary: Learn how to access TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-access/']
---
# Access TiDB Dashboard
diff --git a/dashboard/dashboard-cluster-info.md b/dashboard/dashboard-cluster-info.md
index 8b8b06d9cae22..df09e0f435154 100644
--- a/dashboard/dashboard-cluster-info.md
+++ b/dashboard/dashboard-cluster-info.md
@@ -2,6 +2,7 @@
title: TiDB Dashboard Cluster Information Page
summary: View the running status of TiDB, TiKV, PD, TiFlash components in the entire cluster and the running status of the host on which these components are located.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-cluster-info/']
---
# TiDB Dashboard Cluster Information Page
diff --git a/dashboard/dashboard-diagnostics-access.md b/dashboard/dashboard-diagnostics-access.md
index 4fc616ed0d5f8..fee112f839225 100644
--- a/dashboard/dashboard-diagnostics-access.md
+++ b/dashboard/dashboard-diagnostics-access.md
@@ -2,6 +2,7 @@
title: TiDB Dashboard Cluster Diagnostic Page
summary: Learn how to use the cluster diagnostic page.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-diagnostics-access/']
---
# TiDB Dashboard Cluster Diagnostics Page
diff --git a/dashboard/dashboard-diagnostics-report.md b/dashboard/dashboard-diagnostics-report.md
index 5997ac2510896..83f9ecba87f84 100644
--- a/dashboard/dashboard-diagnostics-report.md
+++ b/dashboard/dashboard-diagnostics-report.md
@@ -2,6 +2,7 @@
title: TiDB Dashboard Diagnostic Report
summary: Learn the TiDB Dashboard diagnostic report.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-diagnostics-report/']
---
# TiDB Dashboard Diagnostic Report
diff --git a/dashboard/dashboard-diagnostics-usage.md b/dashboard/dashboard-diagnostics-usage.md
index e8ebbe835e3f8..1807d2b841d4e 100644
--- a/dashboard/dashboard-diagnostics-usage.md
+++ b/dashboard/dashboard-diagnostics-usage.md
@@ -2,6 +2,7 @@
title: Locate Problems Using Diagnostic Report of TiDB Dashboard
summary: Learn how to locate problems using diagnostic report of TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-diagnostics-usage/']
---
# Locate Problems Using Diagnostic Report of TiDB Dashboard
diff --git a/dashboard/dashboard-faq.md b/dashboard/dashboard-faq.md
index 6fc7f3c76362b..a1511e35342b2 100644
--- a/dashboard/dashboard-faq.md
+++ b/dashboard/dashboard-faq.md
@@ -2,6 +2,7 @@
title: TiDB Dashboard FAQ
summary: Learn about the frequently asked questions (FAQs) and answers about TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-faq/']
---
# TiDB Dashboard FAQ
diff --git a/dashboard/dashboard-intro.md b/dashboard/dashboard-intro.md
index 0b2eb3ba5a532..dee325debbbf5 100644
--- a/dashboard/dashboard-intro.md
+++ b/dashboard/dashboard-intro.md
@@ -2,6 +2,7 @@
title: TiDB Dashboard Introduction
summary: Introduce TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-intro/']
---
# TiDB Dashboard Introduction
diff --git a/dashboard/dashboard-key-visualizer.md b/dashboard/dashboard-key-visualizer.md
index c62818b712a71..035c4cdcca9c1 100644
--- a/dashboard/dashboard-key-visualizer.md
+++ b/dashboard/dashboard-key-visualizer.md
@@ -2,7 +2,7 @@
title: Key Visualizer Page
summary: Learn how to use Key Visualizer to monitor traffic.
category: how-to
-aliases: ['/docs/stable/key-visualizer-monitoring-tool/']
+aliases: ['/docs/v4.0/dashboard/dashboard-key-visualizer/','/docs/stable/key-visualizer-monitoring-tool/']
---
# Key Visualizer Page
diff --git a/dashboard/dashboard-log-search.md b/dashboard/dashboard-log-search.md
index 2391f8781c906..f0b72f0583434 100644
--- a/dashboard/dashboard-log-search.md
+++ b/dashboard/dashboard-log-search.md
@@ -2,6 +2,7 @@
title: TiDB Dashboard Log Search Page
summary: Learn how to search logs of all nodes using the log search page of TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-log-search/']
---
# TiDB Dashboard Log Search Page
diff --git a/dashboard/dashboard-ops-deploy.md b/dashboard/dashboard-ops-deploy.md
index 590862e0bb6f5..bbba4f7c00aae 100644
--- a/dashboard/dashboard-ops-deploy.md
+++ b/dashboard/dashboard-ops-deploy.md
@@ -2,6 +2,7 @@
title: Deploy TiDB Dashboard
summary: Learn how to deploy TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-ops-deploy/']
---
# Deploy TiDB Dashboard
diff --git a/dashboard/dashboard-ops-reverse-proxy.md b/dashboard/dashboard-ops-reverse-proxy.md
index 769d15c5a0231..8ebf333e96a35 100644
--- a/dashboard/dashboard-ops-reverse-proxy.md
+++ b/dashboard/dashboard-ops-reverse-proxy.md
@@ -1,6 +1,7 @@
---
title: Use TiDB Dashboard behind a Reverse Proxy
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-ops-reverse-proxy/']
---
# Use TiDB Dashboard behind a Reverse Proxy
diff --git a/dashboard/dashboard-ops-security.md b/dashboard/dashboard-ops-security.md
index a2d0cfbc8af25..ed4a570f87295 100644
--- a/dashboard/dashboard-ops-security.md
+++ b/dashboard/dashboard-ops-security.md
@@ -2,6 +2,7 @@
title: Secure TiDB Dashboard
summary: Learn how to improve the security of TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-ops-security/']
---
# Secure TiDB Dashboard
diff --git a/dashboard/dashboard-overview.md b/dashboard/dashboard-overview.md
index 34562755da836..31bb0d350e534 100644
--- a/dashboard/dashboard-overview.md
+++ b/dashboard/dashboard-overview.md
@@ -2,6 +2,7 @@
title: Overview Page
summary: Learn the overview page of TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-overview/']
---
# Overview Page
diff --git a/dashboard/dashboard-profiling.md b/dashboard/dashboard-profiling.md
index 5632ddd5b57fb..94a96fea8b35c 100644
--- a/dashboard/dashboard-profiling.md
+++ b/dashboard/dashboard-profiling.md
@@ -2,6 +2,7 @@
title: Instance Profiling Page
summary: Learn the instance profiling page of TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-profiling/']
---
# Instance Profiling Page
diff --git a/dashboard/dashboard-slow-query.md b/dashboard/dashboard-slow-query.md
index 88d379bb9c528..56d9b1e6b1a39 100644
--- a/dashboard/dashboard-slow-query.md
+++ b/dashboard/dashboard-slow-query.md
@@ -2,6 +2,7 @@
title: Slow Queries Page of TiDB Dashboard
summary: Learn the Slow Queries page of TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-slow-query/']
---
# Slow Queries Page of TiDB Dashboard
diff --git a/dashboard/dashboard-statement-details.md b/dashboard/dashboard-statement-details.md
index 0c4ac3a6435ae..7c1a6affe23d8 100644
--- a/dashboard/dashboard-statement-details.md
+++ b/dashboard/dashboard-statement-details.md
@@ -2,6 +2,7 @@
title: Statement Execution Details of TiDB Dashboard
summary: View the execution details of a single SQL statement in TiDB Dashboard.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-statement-details/']
---
# Statement Execution Details of TiDB Dashboard
diff --git a/dashboard/dashboard-statement-list.md b/dashboard/dashboard-statement-list.md
index a6ba0f541bc80..db4bb878ec984 100644
--- a/dashboard/dashboard-statement-list.md
+++ b/dashboard/dashboard-statement-list.md
@@ -2,6 +2,7 @@
title: SQL Statements Page of TiDB Dashboard
summary: View the execution status of all SQL statements in the TiDB cluster.
category: how-to
+aliases: ['/docs/v4.0/dashboard/dashboard-statement-list/']
---
# SQL Statements Page of TiDB Dashboard
diff --git a/data-type-date-and-time.md b/data-type-date-and-time.md
index 8281c14ef7a43..2df9f3b5d6f80 100644
--- a/data-type-date-and-time.md
+++ b/data-type-date-and-time.md
@@ -2,7 +2,7 @@
title: Date and Time Types
summary: Learn about the supported date and time types.
category: reference
-aliases: ['/docs/stable/reference/sql/data-types/date-and-time/']
+aliases: ['/docs/v4.0/data-type-date-and-time/','/docs/stable/reference/sql/data-types/date-and-time/']
---
# Date and Time Types
diff --git a/data-type-default-values.md b/data-type-default-values.md
index a429806d84187..e5dce1a9a8866 100644
--- a/data-type-default-values.md
+++ b/data-type-default-values.md
@@ -2,7 +2,7 @@
title: TiDB Data Type
summary: Learn about default values for data types in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/data-types/default-values/']
+aliases: ['/docs/v4.0/data-type-default-values/','/docs/stable/reference/sql/data-types/default-values/']
---
# Default Values
diff --git a/data-type-json.md b/data-type-json.md
index ca55e87b015d8..cf7fb6f11f1d2 100644
--- a/data-type-json.md
+++ b/data-type-json.md
@@ -2,7 +2,7 @@
title: TiDB Data Type
summary: Learn about the JSON data type in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/data-types/json/']
+aliases: ['/docs/v4.0/data-type-json/','/docs/stable/reference/sql/data-types/json/']
---
# JSON Type
diff --git a/data-type-numeric.md b/data-type-numeric.md
index f40e7c7522518..3c25eeb323cbf 100644
--- a/data-type-numeric.md
+++ b/data-type-numeric.md
@@ -2,7 +2,7 @@
title: Numeric Types
summary: Learn about numeric data types supported in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/data-types/numeric/']
+aliases: ['/docs/v4.0/data-type-numeric/','/docs/stable/reference/sql/data-types/numeric/']
---
# Numeric Types
diff --git a/data-type-overview.md b/data-type-overview.md
index 1533ea7ec5d4b..1f4bf308c2090 100644
--- a/data-type-overview.md
+++ b/data-type-overview.md
@@ -2,7 +2,7 @@
title: Data Types
summary: Learn about the data types supported in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/data-types/overview/']
+aliases: ['/docs/v4.0/data-type-overview/','/docs/stable/reference/sql/data-types/overview/']
---
# Data Types
diff --git a/data-type-string.md b/data-type-string.md
index e92079e70c2b7..05dd8efaf7975 100644
--- a/data-type-string.md
+++ b/data-type-string.md
@@ -2,7 +2,7 @@
title: String types
summary: Learn about the string types supported in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/data-types/string/']
+aliases: ['/docs/v4.0/data-type-string/','/docs/stable/reference/sql/data-types/string/']
---
# String Types
diff --git a/deploy-monitoring-services.md b/deploy-monitoring-services.md
index 068e7672d2655..eb249b435f136 100644
--- a/deploy-monitoring-services.md
+++ b/deploy-monitoring-services.md
@@ -2,7 +2,7 @@
title: Deploy Monitoring Services for the TiDB Cluster
summary: Learn how to deploy monitoring services for the TiDB cluster.
category: how-to
-aliases: ['/docs/stable/how-to/monitor/monitor-a-cluster/','/docs/stable/monitor-a-tidb-cluster/']
+aliases: ['/docs/v4.0/deploy-monitoring-services/','/docs/stable/how-to/monitor/monitor-a-cluster/','/docs/stable/monitor-a-tidb-cluster/']
---
# Deploy Monitoring Services for the TiDB Cluster
diff --git a/deploy-test-cluster-using-docker-compose.md b/deploy-test-cluster-using-docker-compose.md
index 86e2397323987..5bef32ceb32af 100644
--- a/deploy-test-cluster-using-docker-compose.md
+++ b/deploy-test-cluster-using-docker-compose.md
@@ -2,7 +2,7 @@
title: TiDB Docker Compose Deployment
summary: Use Docker Compose to quickly deploy a TiDB testing cluster.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/deploy-tidb-from-docker-compose/']
+aliases: ['/docs/v4.0/deploy-test-cluster-using-docker-compose/','/docs/stable/how-to/get-started/deploy-tidb-from-docker-compose/']
---
# TiDB Docker Compose Deployment
diff --git a/deploy-tidb-from-binary.md b/deploy-tidb-from-binary.md
index 1dfdd6a452ded..9316891be53ca 100644
--- a/deploy-tidb-from-binary.md
+++ b/deploy-tidb-from-binary.md
@@ -2,7 +2,7 @@
title: Local Deployment from Binary Tarball
summary: Use the binary to deploy a TiDB cluster.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/deploy-tidb-from-binary/']
+aliases: ['/docs/v4.0/deploy-tidb-from-binary/','/docs/stable/how-to/get-started/deploy-tidb-from-binary/']
---
# Local Deployment from Binary Tarball
diff --git a/deploy-tidb-from-dbdeployer.md b/deploy-tidb-from-dbdeployer.md
index b7ab9b5e809ca..3b2c38c052686 100644
--- a/deploy-tidb-from-dbdeployer.md
+++ b/deploy-tidb-from-dbdeployer.md
@@ -2,7 +2,7 @@
title: Install from DBdeployer
summary: Install TiDB using the DBdeployer package manager.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/deploy-tidb-from-dbdeployer/']
+aliases: ['/docs/v4.0/deploy-tidb-from-dbdeployer/','/docs/stable/how-to/get-started/deploy-tidb-from-dbdeployer/']
---
# Install from DBdeployer
diff --git a/deploy-tidb-from-homebrew.md b/deploy-tidb-from-homebrew.md
index c8ce668933034..0dd6fadd28387 100644
--- a/deploy-tidb-from-homebrew.md
+++ b/deploy-tidb-from-homebrew.md
@@ -2,7 +2,7 @@
title: Install from Homebrew
summary: Install TiDB using the Homebrew package manager.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/deploy-tidb-from-homebrew/']
+aliases: ['/docs/v4.0/deploy-tidb-from-homebrew/','/docs/stable/how-to/get-started/deploy-tidb-from-homebrew/']
---
# Install from Homebrew
diff --git a/download-ecosystem-tools.md b/download-ecosystem-tools.md
index 089716e82621e..b8a05ee0d20d6 100644
--- a/download-ecosystem-tools.md
+++ b/download-ecosystem-tools.md
@@ -2,7 +2,7 @@
title: Download
summary: Download the most officially maintained versions of TiDB enterprise tools.
category: reference
-aliases: ['/docs/stable/reference/tools/download/']
+aliases: ['/docs/v4.0/download-ecosystem-tools/','/docs/stable/reference/tools/download/']
---
# Download
diff --git a/dynamic-config.md b/dynamic-config.md
index 97629ff4b14b7..15c38e3224e37 100644
--- a/dynamic-config.md
+++ b/dynamic-config.md
@@ -2,6 +2,7 @@
title: Dynamic Configuration Change
summary: Learn how to use dynamic configuration change.
category: reference
+aliases: ['/docs/v4.0/dynamic-config/']
---
# Dynamic Configuration Change
diff --git a/ecosystem-tool-user-case.md b/ecosystem-tool-user-case.md
index 9f764d534a90e..4e01f8dab285d 100644
--- a/ecosystem-tool-user-case.md
+++ b/ecosystem-tool-user-case.md
@@ -2,6 +2,7 @@
title: TiDB Ecosystem Tools Use Cases
summary: Learn the common use cases of TiDB ecosystem tools and how to choose the tools.
category: reference
+aliases: ['/docs/v4.0/ecosystem-tool-user-case/']
---
# TiDB Ecosystem Tools Use Cases
diff --git a/ecosystem-tool-user-guide.md b/ecosystem-tool-user-guide.md
index 4970d0aac9cb4..771025d5714e9 100644
--- a/ecosystem-tool-user-guide.md
+++ b/ecosystem-tool-user-guide.md
@@ -1,7 +1,7 @@
---
title: TiDB Ecosystem Tools Overview
category: reference
-aliases: ['/docs/stable/reference/tools/user-guide/']
+aliases: ['/docs/v4.0/ecosystem-tool-user-guide/','/docs/stable/reference/tools/user-guide/']
---
# TiDB Ecosystem Tools Overview
diff --git a/enable-tls-between-clients-and-servers.md b/enable-tls-between-clients-and-servers.md
index 77f4deca67f5f..d542c4f858ce6 100644
--- a/enable-tls-between-clients-and-servers.md
+++ b/enable-tls-between-clients-and-servers.md
@@ -2,7 +2,7 @@
title: Enable TLS Between TiDB Clients and Servers
summary: Use the encrypted connection to ensure data security.
category: how-to
-aliases: ['/docs/stable/how-to/secure/enable-tls-clients/','/docs/stable/encrypted-connections-with-tls-protocols/']
+aliases: ['/docs/v4.0/enable-tls-between-clients-and-servers/','/docs/stable/how-to/secure/enable-tls-clients/','/docs/stable/encrypted-connections-with-tls-protocols/']
---
# Enable TLS Between TiDB Clients and Servers
diff --git a/enable-tls-between-components.md b/enable-tls-between-components.md
index d929ac1f9d844..b05ca1f0c645c 100644
--- a/enable-tls-between-components.md
+++ b/enable-tls-between-components.md
@@ -2,7 +2,7 @@
title: Enable TLS Between TiDB Components
summary: Learn how to enable TLS authentication between TiDB components.
category: how-to
-aliases: ['/docs/stable/how-to/secure/enable-tls-between-components/']
+aliases: ['/docs/v4.0/enable-tls-between-components/','/docs/stable/how-to/secure/enable-tls-between-components/']
---
# Enable TLS Between TiDB Components
diff --git a/encryption-at-rest.md b/encryption-at-rest.md
index 45e25216c5598..d44b4e51edb66 100644
--- a/encryption-at-rest.md
+++ b/encryption-at-rest.md
@@ -2,6 +2,7 @@
title: Encryption-At-Rest for TiKV
summary: Learn how to enable encryption-at-rest to protect sensitive data.
category: reference
+aliases: ['/docs/v4.0/encryption-at-rest/']
---
# Encryption-At-Rest for TiKV New in v4.0.0
diff --git a/error-codes.md b/error-codes.md
index 052255c7001e1..80fc96a58f1bd 100644
--- a/error-codes.md
+++ b/error-codes.md
@@ -2,7 +2,7 @@
title: Error Codes and Troubleshooting
summary: Learn about the error codes and solutions in TiDB.
category: reference
-aliases: ['/docs/stable/reference/error-codes/']
+aliases: ['/docs/v4.0/error-codes/','/docs/stable/reference/error-codes/']
---
# Error Codes and Troubleshooting
diff --git a/export-or-backup-using-dumpling.md b/export-or-backup-using-dumpling.md
index 68c8450ff3a67..abe9d25a39d75 100644
--- a/export-or-backup-using-dumpling.md
+++ b/export-or-backup-using-dumpling.md
@@ -2,6 +2,7 @@
title: Export or Backup Data Using Dumpling
summary: Use the Dumpling tool to export or backup data in TiDB.
category: how-to
+aliases: ['/docs/v4.0/export-or-backup-using-dumpling/']
---
# Export or Backup Data Using Dumpling
diff --git a/expression-syntax.md b/expression-syntax.md
index 9e3691a9d532e..88e89f8b95665 100644
--- a/expression-syntax.md
+++ b/expression-syntax.md
@@ -2,7 +2,7 @@
title: Expression Syntax
summary: Learn about the expression syntax in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/language-structure/expression-syntax/']
+aliases: ['/docs/v4.0/expression-syntax/','/docs/stable/reference/sql/language-structure/expression-syntax/']
---
# Expression Syntax
diff --git a/faq/tidb-faq.md b/faq/tidb-faq.md
index 16a79a32f4a79..7fb9ec45f55b3 100644
--- a/faq/tidb-faq.md
+++ b/faq/tidb-faq.md
@@ -2,7 +2,7 @@
title: TiDB FAQ
summary: Learn about the most frequently asked questions (FAQs) relating to TiDB.
category: faq
-aliases: ['/docs/stable/faq/tidb/']
+aliases: ['/docs/v4.0/faq/tidb-faq/','/docs/stable/faq/tidb/']
---
# TiDB FAQ
diff --git a/faq/upgrade-faq.md b/faq/upgrade-faq.md
index a70d69b3aaf11..6427c7914c312 100644
--- a/faq/upgrade-faq.md
+++ b/faq/upgrade-faq.md
@@ -2,7 +2,7 @@
title: FAQs After Upgrade
summary: Learn about the FAQs after upgrading TiDB.
category: faq
-aliases: ['/docs/stable/faq/upgrade/']
+aliases: ['/docs/v4.0/faq/upgrade-faq/','/docs/stable/faq/upgrade/']
---
# FAQs After Upgrade
diff --git a/follower-read.md b/follower-read.md
index f785ceda4be3c..97cbc550637e0 100644
--- a/follower-read.md
+++ b/follower-read.md
@@ -2,7 +2,7 @@
title: Follower Read
summary: This document describes the use and implementation of Follower Read.
category: reference
-aliases: ['/docs/stable/reference/performance/follower-read/']
+aliases: ['/docs/v4.0/follower-read/','/docs/stable/reference/performance/follower-read/']
---
# Follower Read
diff --git a/functions-and-operators/aggregate-group-by-functions.md b/functions-and-operators/aggregate-group-by-functions.md
index f1f058c16947d..4450bb21cff51 100644
--- a/functions-and-operators/aggregate-group-by-functions.md
+++ b/functions-and-operators/aggregate-group-by-functions.md
@@ -2,7 +2,7 @@
title: Aggregate (GROUP BY) Functions
summary: Learn about the supported aggregate functions in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/aggregate-group-by-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/aggregate-group-by-functions/','/docs/stable/reference/sql/functions-and-operators/aggregate-group-by-functions/']
---
# Aggregate (GROUP BY) Functions
diff --git a/functions-and-operators/bit-functions-and-operators.md b/functions-and-operators/bit-functions-and-operators.md
index 97451eb37ab03..f229b7a2f8337 100644
--- a/functions-and-operators/bit-functions-and-operators.md
+++ b/functions-and-operators/bit-functions-and-operators.md
@@ -2,7 +2,7 @@
title: Bit Functions and Operators
summary: Learn about the bit functions and operators.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/bit-functions-and-operators/']
+aliases: ['/docs/v4.0/functions-and-operators/bit-functions-and-operators/','/docs/stable/reference/sql/functions-and-operators/bit-functions-and-operators/']
---
# Bit Functions and Operators
diff --git a/functions-and-operators/cast-functions-and-operators.md b/functions-and-operators/cast-functions-and-operators.md
index fd59675aaed3d..e094d9db6deca 100644
--- a/functions-and-operators/cast-functions-and-operators.md
+++ b/functions-and-operators/cast-functions-and-operators.md
@@ -2,7 +2,7 @@
title: Cast Functions and Operators
summary: Learn about the cast functions and operators.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/cast-functions-and-operators/']
+aliases: ['/docs/v4.0/functions-and-operators/cast-functions-and-operators/','/docs/stable/reference/sql/functions-and-operators/cast-functions-and-operators/']
---
# Cast Functions and Operators
diff --git a/functions-and-operators/control-flow-functions.md b/functions-and-operators/control-flow-functions.md
index e92410384fe69..8c1044b659b12 100644
--- a/functions-and-operators/control-flow-functions.md
+++ b/functions-and-operators/control-flow-functions.md
@@ -2,7 +2,7 @@
title: Control Flow Functions
summary: Learn about the Control Flow functions.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/control-flow-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/control-flow-functions/','/docs/stable/reference/sql/functions-and-operators/control-flow-functions/']
---
# Control Flow Functions
diff --git a/functions-and-operators/date-and-time-functions.md b/functions-and-operators/date-and-time-functions.md
index 107e21aafa845..959ecb9a4818c 100644
--- a/functions-and-operators/date-and-time-functions.md
+++ b/functions-and-operators/date-and-time-functions.md
@@ -2,7 +2,7 @@
title: Date and Time Functions
summary: Learn how to use the data and time functions.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/date-and-time-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/date-and-time-functions/','/docs/stable/reference/sql/functions-and-operators/date-and-time-functions/']
---
# Date and Time Functions
diff --git a/functions-and-operators/encryption-and-compression-functions.md b/functions-and-operators/encryption-and-compression-functions.md
index c471c134acd6e..21b3daf0e18d8 100644
--- a/functions-and-operators/encryption-and-compression-functions.md
+++ b/functions-and-operators/encryption-and-compression-functions.md
@@ -2,7 +2,7 @@
title: Encryption and Compression Functions
summary: Learn about the encryption and compression functions.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/encryption-and-compression-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/encryption-and-compression-functions/','/docs/stable/reference/sql/functions-and-operators/encryption-and-compression-functions/']
---
# Encryption and Compression Functions
diff --git a/functions-and-operators/expressions-pushed-down.md b/functions-and-operators/expressions-pushed-down.md
index f9d07e27ce84e..0cc469c14d36c 100644
--- a/functions-and-operators/expressions-pushed-down.md
+++ b/functions-and-operators/expressions-pushed-down.md
@@ -2,7 +2,7 @@
title: List of Expressions for Pushdown
summary: Learn a list of expressions that can be pushed down to TiKV and the related operations.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/expressions-pushed-down/']
+aliases: ['/docs/v4.0/functions-and-operators/expressions-pushed-down/','/docs/stable/reference/sql/functions-and-operators/expressions-pushed-down/']
---
# List of Expressions for Pushdown
diff --git a/functions-and-operators/functions-and-operators-overview.md b/functions-and-operators/functions-and-operators-overview.md
index 94af4aeab6eb5..88dcd6db4557b 100644
--- a/functions-and-operators/functions-and-operators-overview.md
+++ b/functions-and-operators/functions-and-operators-overview.md
@@ -2,7 +2,7 @@
title: Function and Operator Reference
summary: Learn how to use the functions and operators.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/reference/']
+aliases: ['/docs/v4.0/functions-and-operators/functions-and-operators-overview/','/docs/stable/reference/sql/functions-and-operators/reference/']
---
# Function and Operator Reference
diff --git a/functions-and-operators/information-functions.md b/functions-and-operators/information-functions.md
index 3fcd5a2b0b68d..e303529b5689b 100644
--- a/functions-and-operators/information-functions.md
+++ b/functions-and-operators/information-functions.md
@@ -2,7 +2,7 @@
title: Information Functions
summary: Learn about the information functions.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/information-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/information-functions/','/docs/stable/reference/sql/functions-and-operators/information-functions/']
---
# Information Functions
diff --git a/functions-and-operators/json-functions.md b/functions-and-operators/json-functions.md
index b55103db0c57c..7a3447598c993 100644
--- a/functions-and-operators/json-functions.md
+++ b/functions-and-operators/json-functions.md
@@ -2,7 +2,7 @@
title: JSON Functions
summary: Learn about JSON functions.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/json-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/json-functions/','/docs/stable/reference/sql/functions-and-operators/json-functions/']
---
# JSON Functions
diff --git a/functions-and-operators/miscellaneous-functions.md b/functions-and-operators/miscellaneous-functions.md
index ea7c240d9cf3f..6087a78bc1c4a 100644
--- a/functions-and-operators/miscellaneous-functions.md
+++ b/functions-and-operators/miscellaneous-functions.md
@@ -2,7 +2,7 @@
title: Miscellaneous Functions
summary: Learn about miscellaneous functions in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/miscellaneous-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/miscellaneous-functions/','/docs/stable/reference/sql/functions-and-operators/miscellaneous-functions/']
---
# Miscellaneous Functions
diff --git a/functions-and-operators/numeric-functions-and-operators.md b/functions-and-operators/numeric-functions-and-operators.md
index a2ad3a72c397c..2373e08c98f27 100644
--- a/functions-and-operators/numeric-functions-and-operators.md
+++ b/functions-and-operators/numeric-functions-and-operators.md
@@ -2,7 +2,7 @@
title: Numeric Functions and Operators
summary: Learn about the numeric functions and operators.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/numeric-functions-and-operators/']
+aliases: ['/docs/v4.0/functions-and-operators/numeric-functions-and-operators/','/docs/stable/reference/sql/functions-and-operators/numeric-functions-and-operators/']
---
# Numeric Functions and Operators
diff --git a/functions-and-operators/operators.md b/functions-and-operators/operators.md
index 3c58335ba5d4b..a1b05e32ccf7e 100644
--- a/functions-and-operators/operators.md
+++ b/functions-and-operators/operators.md
@@ -2,7 +2,7 @@
title: Operators
summary: Learn about the operators precedence, comparison functions and operators, logical operators, and assignment operators.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/operators/']
+aliases: ['/docs/v4.0/functions-and-operators/operators/','/docs/stable/reference/sql/functions-and-operators/operators/']
---
# Operators
diff --git a/functions-and-operators/precision-math.md b/functions-and-operators/precision-math.md
index 918bb27f8e37b..01486675fe176 100644
--- a/functions-and-operators/precision-math.md
+++ b/functions-and-operators/precision-math.md
@@ -2,7 +2,7 @@
title: Precision Math
summary: Learn about the precision math in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/precision-math/']
+aliases: ['/docs/v4.0/functions-and-operators/precision-math/','/docs/stable/reference/sql/functions-and-operators/precision-math/']
---
# Precision Math
diff --git a/functions-and-operators/string-functions.md b/functions-and-operators/string-functions.md
index 0605fdf142903..0606e4911a170 100644
--- a/functions-and-operators/string-functions.md
+++ b/functions-and-operators/string-functions.md
@@ -2,7 +2,7 @@
title: String Functions
summary: Learn about the string functions in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/string-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/string-functions/','/docs/stable/reference/sql/functions-and-operators/string-functions/']
---
# String Functions
diff --git a/functions-and-operators/type-conversion-in-expression-evaluation.md b/functions-and-operators/type-conversion-in-expression-evaluation.md
index 4b475b9b115bc..970c77e903631 100644
--- a/functions-and-operators/type-conversion-in-expression-evaluation.md
+++ b/functions-and-operators/type-conversion-in-expression-evaluation.md
@@ -2,7 +2,7 @@
title: Type Conversion in Expression Evaluation
summary: Learn about the type conversion in expression evaluation.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/type-conversion/']
+aliases: ['/docs/v4.0/functions-and-operators/type-conversion-in-expression-evaluation/','/docs/stable/reference/sql/functions-and-operators/type-conversion/']
---
# Type Conversion in Expression Evaluation
diff --git a/functions-and-operators/window-functions.md b/functions-and-operators/window-functions.md
index 098b168fb234f..afa01b1b7802d 100644
--- a/functions-and-operators/window-functions.md
+++ b/functions-and-operators/window-functions.md
@@ -2,7 +2,7 @@
title: Window Functions
summary: This document introduces window functions supported in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/functions-and-operators/window-functions/']
+aliases: ['/docs/v4.0/functions-and-operators/window-functions/','/docs/stable/reference/sql/functions-and-operators/window-functions/']
---
# Window Functions
diff --git a/garbage-collection-configuration.md b/garbage-collection-configuration.md
index ac1ec55a7d79d..a0351d0bbfe0b 100644
--- a/garbage-collection-configuration.md
+++ b/garbage-collection-configuration.md
@@ -2,7 +2,7 @@
title: GC Configuration
summary: Learn about GC configuration parameters.
category: reference
-aliases: ['/docs/stable/reference/garbage-collection/configuration/']
+aliases: ['/docs/v4.0/garbage-collection-configuration/','/docs/stable/reference/garbage-collection/configuration/']
---
# GC Configuration
diff --git a/garbage-collection-overview.md b/garbage-collection-overview.md
index 39447317f1a2d..9cb79819328cb 100644
--- a/garbage-collection-overview.md
+++ b/garbage-collection-overview.md
@@ -2,7 +2,7 @@
title: GC Overview
summary: Learn about Garbage Collection in TiDB.
category: reference
-aliases: ['/docs/stable/reference/garbage-collection/overview/']
+aliases: ['/docs/v4.0/garbage-collection-overview/','/docs/stable/reference/garbage-collection/overview/']
---
# GC Overview
diff --git a/generate-self-signed-certificates.md b/generate-self-signed-certificates.md
index 9014b56007b55..4bb82806d8cf5 100644
--- a/generate-self-signed-certificates.md
+++ b/generate-self-signed-certificates.md
@@ -2,7 +2,7 @@
title: Generate Self-signed Certificates
summary: Use `openssl` to generate self-signed certificates.
category: how-to
-aliases: ['/docs/stable/how-to/secure/generate-self-signed-certificates/']
+aliases: ['/docs/v4.0/generate-self-signed-certificates/','/docs/stable/how-to/secure/generate-self-signed-certificates/']
---
# Generate Self-signed Certificates
diff --git a/generated-columns.md b/generated-columns.md
index 6ac807035c8e0..e42e0cb7d89a5 100644
--- a/generated-columns.md
+++ b/generated-columns.md
@@ -2,7 +2,7 @@
title: Generated Columns
summary: Learn how to use generated columns.
category: reference
-aliases: ['/docs/stable/reference/sql/generated-columns/']
+aliases: ['/docs/v4.0/generated-columns/','/docs/stable/reference/sql/generated-columns/']
---
# Generated Columns
diff --git a/geo-distributed-deployment-topology.md b/geo-distributed-deployment-topology.md
index ac9ae34afe860..76483f58039a7 100644
--- a/geo-distributed-deployment-topology.md
+++ b/geo-distributed-deployment-topology.md
@@ -2,6 +2,7 @@
title: Geo-distributed Deployment topology
summary: Learn the geo-distributed deployment topology of TiDB.
category: how-to
+aliases: ['/docs/v4.0/geo-distributed-deployment-topology/']
---
# Geo-distributed Deployment topology
diff --git a/geo-redundancy-deployment.md b/geo-redundancy-deployment.md
index 8b66d1c5f1cbd..59a5ec2f4b6ff 100644
--- a/geo-redundancy-deployment.md
+++ b/geo-redundancy-deployment.md
@@ -1,7 +1,7 @@
---
title: Cross-DC Deployment Solutions
category: how-to
-aliases: ['/docs/stable/how-to/deploy/geographic-redundancy/overview/']
+aliases: ['/docs/v4.0/geo-redundancy-deployment/','/docs/stable/how-to/deploy/geographic-redundancy/overview/']
---
# Cross-DC Deployment Solutions
diff --git a/get-started-with-tidb-binlog.md b/get-started-with-tidb-binlog.md
index b8371947e47b8..714a8e4567efb 100644
--- a/get-started-with-tidb-binlog.md
+++ b/get-started-with-tidb-binlog.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Tutorial
summary: Learn to deploy TiDB Binlog with a simple TiDB cluster.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/tidb-binlog/']
+aliases: ['/docs/v4.0/get-started-with-tidb-binlog/','/docs/stable/how-to/get-started/tidb-binlog/']
---
# TiDB Binlog Tutorial
diff --git a/get-started-with-tidb-lightning.md b/get-started-with-tidb-lightning.md
index 59dfdd03056cc..cadc423f3cfde 100644
--- a/get-started-with-tidb-lightning.md
+++ b/get-started-with-tidb-lightning.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Tutorial
summary: Learn how to deploy TiDB Lightning and import full backup data to TiDB.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/tidb-lightning/']
+aliases: ['/docs/v4.0/get-started-with-tidb-lightning/','/docs/stable/how-to/get-started/tidb-lightning/']
---
# TiDB Lightning Tutorial
diff --git a/get-started-with-tispark.md b/get-started-with-tispark.md
index e5f4a72678337..c055fe0aa8776 100644
--- a/get-started-with-tispark.md
+++ b/get-started-with-tispark.md
@@ -2,7 +2,7 @@
title: TiSpark Quick Start Guide
summary: Learn how to use TiSpark quickly.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/tispark/']
+aliases: ['/docs/v4.0/get-started-with-tispark/','/docs/stable/how-to/get-started/tispark/']
---
# TiSpark Quick Start Guide
diff --git a/glossary.md b/glossary.md
index a2f549c0cdac4..fdd708f656ba3 100644
--- a/glossary.md
+++ b/glossary.md
@@ -2,6 +2,7 @@
title: Glossary
summary: Glossaries about TiDB.
category: glossary
+aliases: ['/docs/v4.0/glossary/']
---
# Glossary
diff --git a/grafana-overview-dashboard.md b/grafana-overview-dashboard.md
index 8107543d596a1..21269214e8922 100644
--- a/grafana-overview-dashboard.md
+++ b/grafana-overview-dashboard.md
@@ -2,7 +2,7 @@
title: Key Metrics
summary: Learn some key metrics displayed on the Grafana Overview dashboard.
category: reference
-aliases: ['/docs/stable/reference/key-monitoring-metrics/overview-dashboard/']
+aliases: ['/docs/v4.0/grafana-overview-dashboard/','/docs/stable/reference/key-monitoring-metrics/overview-dashboard/']
---
# Key Metrics
diff --git a/grafana-pd-dashboard.md b/grafana-pd-dashboard.md
index 213c280645c61..f021bc4d31552 100644
--- a/grafana-pd-dashboard.md
+++ b/grafana-pd-dashboard.md
@@ -2,7 +2,7 @@
title: Key Monitoring Metrics of PD
summary: Learn some key metrics displayed on the Grafana PD dashboard.
category: reference
-aliases: ['/docs/stable/reference/key-monitoring-metrics/pd-dashboard/']
+aliases: ['/docs/v4.0/grafana-pd-dashboard/','/docs/stable/reference/key-monitoring-metrics/pd-dashboard/']
---
# Key Monitoring Metrics of PD
diff --git a/grafana-tidb-dashboard.md b/grafana-tidb-dashboard.md
index fd17a1d3773b1..71075c4ee0979 100644
--- a/grafana-tidb-dashboard.md
+++ b/grafana-tidb-dashboard.md
@@ -2,7 +2,7 @@
title: TiDB Monitoring Metrics
summary: Learn some key metrics displayed on the Grafana TiDB dashboard.
category: reference
-aliases: ['/docs/stable/reference/key-monitoring-metrics/tidb-dashboard/']
+aliases: ['/docs/v4.0/grafana-tidb-dashboard/','/docs/stable/reference/key-monitoring-metrics/tidb-dashboard/']
---
# TiDB Monitoring Metrics
diff --git a/grafana-tikv-dashboard.md b/grafana-tikv-dashboard.md
index e07a2be0c7268..44d9992aac502 100644
--- a/grafana-tikv-dashboard.md
+++ b/grafana-tikv-dashboard.md
@@ -2,7 +2,7 @@
title: Key Monitoring Metrics of TiKV
summary: Learn some key metrics displayed on the Grafana TiKV dashboard.
category: reference
-aliases: ['/docs/stable/reference/key-monitoring-metrics/tikv-dashboard/']
+aliases: ['/docs/v4.0/grafana-tikv-dashboard/','/docs/stable/reference/key-monitoring-metrics/tikv-dashboard/']
---
# Key Monitoring Metrics of TiKV
diff --git a/hardware-and-software-requirements.md b/hardware-and-software-requirements.md
index ca1a5d4592506..5f0095527994e 100644
--- a/hardware-and-software-requirements.md
+++ b/hardware-and-software-requirements.md
@@ -2,7 +2,7 @@
title: Software and Hardware Recommendations
summary: Learn the software and hardware recommendations for deploying and running TiDB.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/hardware-recommendations/']
+aliases: ['/docs/v4.0/hardware-and-software-requirements/','/docs/stable/how-to/deploy/hardware-recommendations/']
---
# Software and Hardware Recommendations
diff --git a/hybrid-deployment-topology.md b/hybrid-deployment-topology.md
index 7f49ff2b403e0..82b629e4c43d0 100644
--- a/hybrid-deployment-topology.md
+++ b/hybrid-deployment-topology.md
@@ -2,6 +2,7 @@
title: Hybrid Deployment Topology
summary: Learn the hybrid deployment topology of TiDB clusters.
category: how-to
+aliases: ['/docs/v4.0/hybrid-deployment-topology/']
---
# Hybrid Deployment Topology
diff --git a/identify-expensive-queries.md b/identify-expensive-queries.md
index 1c889c54bf1a9..97bcd33f92e51 100644
--- a/identify-expensive-queries.md
+++ b/identify-expensive-queries.md
@@ -1,7 +1,7 @@
---
title: Identify Expensive Queries
category: how to
-aliases: ['/docs/stable/how-to/maintain/identify-abnormal-queries/identify-expensive-queries/']
+aliases: ['/docs/v4.0/identify-expensive-queries/','/docs/stable/how-to/maintain/identify-abnormal-queries/identify-expensive-queries/']
---
# Identify Expensive Queries
diff --git a/identify-slow-queries.md b/identify-slow-queries.md
index 90d89110da4dc..eab2404c4400c 100644
--- a/identify-slow-queries.md
+++ b/identify-slow-queries.md
@@ -2,7 +2,7 @@
title: Identify Slow Queries
summary: Use the slow query log to identify problematic SQL statements.
category: how-to
-aliases: ['/docs/stable/how-to/maintain/identify-abnormal-queries/identify-slow-queries/']
+aliases: ['/docs/v4.0/identify-slow-queries/','/docs/stable/how-to/maintain/identify-abnormal-queries/identify-slow-queries/']
---
# Identify Slow Queries
diff --git a/import-example-data.md b/import-example-data.md
index 6b56ab08e1f4e..37499e133e992 100644
--- a/import-example-data.md
+++ b/import-example-data.md
@@ -2,7 +2,7 @@
title: Import Example Database
summary: Install the Bikeshare example database.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/import-example-database/']
+aliases: ['/docs/v4.0/import-example-data/','/docs/stable/how-to/get-started/import-example-database/']
---
# Import Example Database
diff --git a/index-merge.md b/index-merge.md
index dd12f704c2fd9..02015606ee565 100644
--- a/index-merge.md
+++ b/index-merge.md
@@ -2,7 +2,7 @@
title: Access Tables Using `IndexMerge`
summary: Learn how to access tables using the `IndexMerge` query execution plan.
category: reference
-aliases: ['/docs/stable/reference/performance/index-merge/']
+aliases: ['/docs/v4.0/index-merge/','/docs/stable/reference/performance/index-merge/']
---
# Access Tables Using `IndexMerge`
diff --git a/join-reorder.md b/join-reorder.md
index c409a3e0cd675..61e3624b12c15 100644
--- a/join-reorder.md
+++ b/join-reorder.md
@@ -2,7 +2,7 @@
title: Introduction to Join Reorder
summary: Use the Join Reorder algorithm to join multiple tables in TiDB.
category: reference
-aliases: ['/docs/stable/reference/performance/join-reorder/']
+aliases: ['/docs/v4.0/join-reorder/','/docs/stable/reference/performance/join-reorder/']
---
# Introduction to Join Reorder
diff --git a/key-features.md b/key-features.md
index e0e4168250f16..1433888b9f140 100644
--- a/key-features.md
+++ b/key-features.md
@@ -2,6 +2,7 @@
title: Key Features
summary: Key features of the TiDB database platform.
category: concepts
+aliases: ['/docs/v4.0/key-features/']
---
# Key Features
diff --git a/keywords-and-reserved-words.md b/keywords-and-reserved-words.md
index c1bca9bffda80..79945e2efbb49 100644
--- a/keywords-and-reserved-words.md
+++ b/keywords-and-reserved-words.md
@@ -2,7 +2,7 @@
title: Keywords and Reserved Words
summary: Learn about the keywords and reserved words in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/language-structure/keywords-and-reserved-words/']
+aliases: ['/docs/v4.0/keywords-and-reserved-words/','/docs/stable/reference/sql/language-structure/keywords-and-reserved-words/']
---
# Keywords and Reserved Words
diff --git a/literal-values.md b/literal-values.md
index 2a5d827c0db9c..d8dcc749f74de 100644
--- a/literal-values.md
+++ b/literal-values.md
@@ -2,7 +2,7 @@
title: Literal Values
summary: Learn how to use various literal values.
category: reference
-aliases: ['/docs/stable/reference/sql/language-structure/literal-values/']
+aliases: ['/docs/v4.0/literal-values/','/docs/stable/reference/sql/language-structure/literal-values/']
---
# Literal Values
diff --git a/load-misuse-handling.md b/load-misuse-handling.md
index 2f5c9dfb6ca4c..c750f6f80fea4 100644
--- a/load-misuse-handling.md
+++ b/load-misuse-handling.md
@@ -1,7 +1,7 @@
---
title: Common Misuses During Full Data Import
category: reference
-aliases: ['/docs/stable/reference/tools/error-case-handling/load-misuse-handling/']
+aliases: ['/docs/v4.0/load-misuse-handling/','/docs/stable/reference/tools/error-case-handling/load-misuse-handling/']
---
# Common Misuses During Full Data Import
diff --git a/loader-overview.md b/loader-overview.md
index 4f2db9815df2d..e5665fd39f946 100644
--- a/loader-overview.md
+++ b/loader-overview.md
@@ -2,7 +2,7 @@
title: Loader Instructions
summary: Use Loader to load data to TiDB.
category: reference
-aliases: ['/docs/stable/reference/tools/loader/']
+aliases: ['/docs/v4.0/loader-overview/','/docs/stable/reference/tools/loader/']
---
# Loader Instructions
diff --git a/location-awareness.md b/location-awareness.md
index be9e379bf7794..2d8d5db2e073e 100644
--- a/location-awareness.md
+++ b/location-awareness.md
@@ -2,7 +2,7 @@
title: Cluster Topology Configuration
summary: Learn to configure cluster topology to maximize the capacity for disaster recovery.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/geographic-redundancy/location-awareness/']
+aliases: ['/docs/v4.0/location-awareness/','/docs/stable/how-to/deploy/geographic-redundancy/location-awareness/']
---
# Cluster Topology Configuration
diff --git a/maintain-tidb-using-ansible.md b/maintain-tidb-using-ansible.md
index 964b983ba3153..722b0cef688aa 100644
--- a/maintain-tidb-using-ansible.md
+++ b/maintain-tidb-using-ansible.md
@@ -2,7 +2,7 @@
title: TiDB Ansible Common Operations
summary: Learn some common operations when using TiDB Ansible to administer a TiDB cluster.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/orchestrated/ansible-operations/']
+aliases: ['/docs/v4.0/maintain-tidb-using-ansible/','/docs/stable/how-to/deploy/orchestrated/ansible-operations/']
---
# TiDB Ansible Common Operations
diff --git a/maintain-tidb-using-tiup.md b/maintain-tidb-using-tiup.md
index 1f5c4389856a8..c6c33ebf8d211 100644
--- a/maintain-tidb-using-tiup.md
+++ b/maintain-tidb-using-tiup.md
@@ -2,7 +2,7 @@
title: TiUP Common Operations
summary: Learn the common operations to operate and maintain a TiDB cluster using TiUP.
category: how-to
-aliases: ['/docs/stable/how-to/maintain/tiup-operations/']
+aliases: ['/docs/v4.0/maintain-tidb-using-tiup/','/docs/stable/how-to/maintain/tiup-operations/']
---
# TiUP Common Operations
diff --git a/migrate-from-aurora-mysql-database.md b/migrate-from-aurora-mysql-database.md
index 24287e82409bf..9b8d9724914d5 100644
--- a/migrate-from-aurora-mysql-database.md
+++ b/migrate-from-aurora-mysql-database.md
@@ -2,7 +2,7 @@
title: Migrate from MySQL (Amazon Aurora)
summary: Learn how to migrate from MySQL (using a case of Amazon Aurora) to TiDB by using TiDB Data Migration (DM).
category: how-to
-aliases: ['/docs/stable/how-to/migrate/from-mysql-aurora/']
+aliases: ['/docs/v4.0/migrate-from-aurora-mysql-database/','/docs/stable/how-to/migrate/from-mysql-aurora/']
---
# Migrate from MySQL (Amazon Aurora)
diff --git a/migrate-from-mysql-mydumper-files.md b/migrate-from-mysql-mydumper-files.md
index eb2b61e2a6444..f592f9bc22d66 100644
--- a/migrate-from-mysql-mydumper-files.md
+++ b/migrate-from-mysql-mydumper-files.md
@@ -2,6 +2,7 @@
title: Migrate Data from MySQL SQL Files
summary: Learn how to migrate data from MySQL SQL files to TiDB using TiDB Lightning.
category: how-to
+aliases: ['/docs/v4.0/migrate-from-mysql-mydumper-files/']
---
# Migrate Data from MySQL SQL Files
diff --git a/migration-overview.md b/migration-overview.md
index 9c962997d0d22..1cfe0ca7c9f25 100644
--- a/migration-overview.md
+++ b/migration-overview.md
@@ -2,6 +2,7 @@
title: Migration Overview
summary: This document describes how to migrate data from databases or data formats (CSV/SQL).
category: reference
+aliases: ['/docs/v4.0/migration-overview/']
---
# Migration Overview
diff --git a/minimal-deployment-topology.md b/minimal-deployment-topology.md
index 3c6a7812389b6..56dfda5088e43 100644
--- a/minimal-deployment-topology.md
+++ b/minimal-deployment-topology.md
@@ -2,6 +2,7 @@
title: Minimal Deployment Topology
summary: Learn the minimal deployment topology of TiDB clusters.
category: how-to
+aliases: ['/docs/v4.0/minimal-deployment-topology/']
---
# Minimal Deployment Topology
diff --git a/mydumper-overview.md b/mydumper-overview.md
index 4ea33855cb6d8..0ab5352bc42fb 100644
--- a/mydumper-overview.md
+++ b/mydumper-overview.md
@@ -2,7 +2,7 @@
title: Mydumper Instructions
summary: Use Mydumper to export data from TiDB.
category: reference
-aliases: ['/docs/stable/reference/tools/mydumper/']
+aliases: ['/docs/v4.0/mydumper-overview/','/docs/stable/reference/tools/mydumper/']
---
# Mydumper Instructions
diff --git a/mysql-compatibility.md b/mysql-compatibility.md
index 74896c4f0a6c9..5a7c20cfb4fc8 100644
--- a/mysql-compatibility.md
+++ b/mysql-compatibility.md
@@ -2,7 +2,7 @@
title: Compatibility with MySQL
summary: Learn about the compatibility of TiDB with MySQL, and the unsupported and different features.
category: reference
-aliases: ['/docs/stable/reference/mysql-compatibility/']
+aliases: ['/docs/v4.0/mysql-compatibility/','/docs/stable/reference/mysql-compatibility/']
---
# Compatibility with MySQL
diff --git a/offline-deployment-using-ansible.md b/offline-deployment-using-ansible.md
index 10646c64f27ef..8e5ea535b27ca 100644
--- a/offline-deployment-using-ansible.md
+++ b/offline-deployment-using-ansible.md
@@ -2,7 +2,7 @@
title: Deploy TiDB Offline Using TiDB Ansible
summary: Use TiDB Ansible to deploy a TiDB cluster offline.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/orchestrated/offline-ansible/']
+aliases: ['/docs/v4.0/offline-deployment-using-ansible/','/docs/stable/how-to/deploy/orchestrated/offline-ansible/']
---
# Deploy TiDB Offline Using TiDB Ansible
diff --git a/online-deployment-using-ansible.md b/online-deployment-using-ansible.md
index b1224374b0cac..cfd3fed99ab6e 100644
--- a/online-deployment-using-ansible.md
+++ b/online-deployment-using-ansible.md
@@ -2,7 +2,7 @@
title: Deploy TiDB Using TiDB Ansible
summary: Use TiDB Ansible to deploy a TiDB cluster.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/orchestrated/ansible/']
+aliases: ['/docs/v4.0/online-deployment-using-ansible/','/docs/stable/how-to/deploy/orchestrated/ansible/']
---
# Deploy TiDB Using TiDB Ansible
diff --git a/optimistic-transaction.md b/optimistic-transaction.md
index 74a7316d96f39..b94580b748f98 100644
--- a/optimistic-transaction.md
+++ b/optimistic-transaction.md
@@ -2,7 +2,7 @@
title: TiDB Optimistic Transaction Model
summary: Learn the optimistic transaction model in TiDB.
category: reference
-aliases: ['/docs/stable/reference/transactions/transaction-optimistic/']
+aliases: ['/docs/v4.0/optimistic-transaction/','/docs/stable/reference/transactions/transaction-optimistic/']
---
# TiDB Optimistic Transaction Model
diff --git a/optimizer-hints.md b/optimizer-hints.md
index b40d0a084a7dc..52c408eb7e37b 100644
--- a/optimizer-hints.md
+++ b/optimizer-hints.md
@@ -2,7 +2,7 @@
title: Optimizer Hints
summary: Use Optimizer Hints to influence query execution plans
category: reference
-aliases: ['/docs/stable/reference/performance/optimizer-hints/']
+aliases: ['/docs/v4.0/optimizer-hints/','/docs/stable/reference/performance/optimizer-hints/']
---
# Optimizer Hints
diff --git a/overview.md b/overview.md
index a075fc7f72475..a46af5fe7bd92 100644
--- a/overview.md
+++ b/overview.md
@@ -2,6 +2,7 @@
title: TiDB Introduction
summary: Learn how to quickly start a TiDB cluster.
category: introduction
+aliases: ['/docs/v4.0/overview/']
---
# TiDB Introduction
diff --git a/partitioned-table.md b/partitioned-table.md
index 339236f873341..a842c28a1d5fc 100644
--- a/partitioned-table.md
+++ b/partitioned-table.md
@@ -2,7 +2,7 @@
title: Partitioning
summary: Learn how to use partitioning in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/partitioning/']
+aliases: ['/docs/v4.0/partitioned-table/','/docs/stable/reference/sql/partitioning/']
---
# Partitioning
diff --git a/pd-configuration-file.md b/pd-configuration-file.md
index dea574b5a6504..b4c532174e5fb 100644
--- a/pd-configuration-file.md
+++ b/pd-configuration-file.md
@@ -2,7 +2,7 @@
title: PD Configuration File
summary: Learn the PD configuration file.
category: reference
-aliases: ['/docs/stable/reference/configuration/pd-server/configuration-file/']
+aliases: ['/docs/v4.0/pd-configuration-file/','/docs/stable/reference/configuration/pd-server/configuration-file/']
---
# PD Configuration File
diff --git a/pd-control.md b/pd-control.md
index 12e9dd78db63e..7928fe34b5096 100644
--- a/pd-control.md
+++ b/pd-control.md
@@ -2,7 +2,7 @@
title: PD Control User Guide
summary: Use PD Control to obtain the state information of a cluster and tune a cluster.
category: reference
-aliases: ['/docs/stable/reference/tools/pd-control/']
+aliases: ['/docs/v4.0/pd-control/','/docs/stable/reference/tools/pd-control/']
---
# PD Control User Guide
diff --git a/pd-recover.md b/pd-recover.md
index 729f64d74d21f..a823c28419ab1 100644
--- a/pd-recover.md
+++ b/pd-recover.md
@@ -2,7 +2,7 @@
title: PD Recover User Guide
summary: Use PD Recover to recover a PD cluster which cannot start or provide services normally.
category: reference
-aliases: ['/docs/stable/reference/tools/pd-recover/']
+aliases: ['/docs/v4.0/pd-recover/','/docs/stable/reference/tools/pd-recover/']
---
# PD Recover User Guide
diff --git a/pessimistic-transaction.md b/pessimistic-transaction.md
index 9cb875bab09db..dbf806e7de414 100644
--- a/pessimistic-transaction.md
+++ b/pessimistic-transaction.md
@@ -2,7 +2,7 @@
title: TiDB Pessimistic Transaction Model
summary: Learn the pessimistic transaction model in TiDB.
category: reference
-aliases: ['/docs/stable/reference/transactions/transaction-pessimistic/']
+aliases: ['/docs/v4.0/pessimistic-transaction/','/docs/stable/reference/transactions/transaction-pessimistic/']
---
# TiDB Pessimistic Transaction Model
diff --git a/post-installation-check.md b/post-installation-check.md
index 6651fe0dbe153..41881fadfa8db 100644
--- a/post-installation-check.md
+++ b/post-installation-check.md
@@ -2,6 +2,7 @@
title: Check Cluster Status
summary: Learn how to check the running status of the TiDB cluster.
category: how-to
+aliases: ['/docs/v4.0/post-installation-check/']
---
# Check Cluster Status
diff --git a/privilege-management.md b/privilege-management.md
index a409ff76d8890..33c1c1ad7baf2 100644
--- a/privilege-management.md
+++ b/privilege-management.md
@@ -2,7 +2,7 @@
title: Privilege Management
summary: Learn how to manage the privilege.
category: reference
-aliases: ['/docs/stable/reference/security/privilege-system/']
+aliases: ['/docs/v4.0/privilege-management/','/docs/stable/reference/security/privilege-system/']
---
# Privilege Management
diff --git a/production-deployment-from-binary-tarball.md b/production-deployment-from-binary-tarball.md
index 2f0f0f03e9974..7cd8069df8fcd 100644
--- a/production-deployment-from-binary-tarball.md
+++ b/production-deployment-from-binary-tarball.md
@@ -2,7 +2,7 @@
title: Production Deployment from Binary Tarball
summary: Use the binary to deploy a TiDB cluster.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/from-tarball/production-environment/']
+aliases: ['/docs/v4.0/production-deployment-from-binary-tarball/','/docs/stable/how-to/deploy/from-tarball/production-environment/']
---
# Production Deployment from Binary Tarball
diff --git a/production-deployment-using-tiup.md b/production-deployment-using-tiup.md
index 5ee441433fff9..72adfad8a824c 100644
--- a/production-deployment-using-tiup.md
+++ b/production-deployment-using-tiup.md
@@ -2,7 +2,7 @@
title: Deploy a TiDB Cluster Using TiUP
summary: Learn how to easily deploy a TiDB cluster using TiUP.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/orchestrated/tiup/','/docs/stable/tiflash/deploy-tiflash/']
+aliases: ['/docs/v4.0/production-deployment-using-tiup/','/docs/stable/how-to/deploy/orchestrated/tiup/','/docs/stable/tiflash/deploy-tiflash/']
---
# Deploy a TiDB Cluster Using TiUP
diff --git a/production-offline-deployment-using-tiup.md b/production-offline-deployment-using-tiup.md
index b924b745b995b..7e0379dc680fd 100644
--- a/production-offline-deployment-using-tiup.md
+++ b/production-offline-deployment-using-tiup.md
@@ -2,6 +2,7 @@
title: Deploy a TiDB Cluster Offline Using TiUP
summary: Introduce how to deploy a TiDB cluster offline using TiUP.
category: how-to
+aliases: ['/docs/v4.0/production-offline-deployment-using-tiup/']
---
# Deploy a TiDB Cluster Offline Using TiUP
diff --git a/query-execution-plan.md b/query-execution-plan.md
index fcf8be7718a05..4e9e43570c453 100644
--- a/query-execution-plan.md
+++ b/query-execution-plan.md
@@ -2,7 +2,7 @@
title: Understand the Query Execution Plan
summary: Learn about the execution plan information returned by the `EXPLAIN` statement in TiDB.
category: reference
-aliases: ['/docs/stable/reference/performance/understanding-the-query-execution-plan/']
+aliases: ['/docs/v4.0/query-execution-plan/','/docs/stable/reference/performance/understanding-the-query-execution-plan/']
---
# Understand the Query Execution Plan
diff --git a/quick-start-with-tidb.md b/quick-start-with-tidb.md
index e53aa93af2843..f2eb5151b8771 100644
--- a/quick-start-with-tidb.md
+++ b/quick-start-with-tidb.md
@@ -2,7 +2,7 @@
title: Quick Start Guide for the TiDB Database Platform
summary: Learn how to quickly get started with the TiDB platform and see if TiDB is the right choice for you.
category: how-to
-aliases: ['/docs/QUICKSTART','/docs/stable/test-deployment-using-docker/']
+aliases: ['/docs/v4.0/quick-start-with-tidb/','/docs/QUICKSTART','/docs/stable/test-deployment-using-docker/']
---
# Quick Start Guide for the TiDB Database Platform
diff --git a/read-historical-data.md b/read-historical-data.md
index a26f43d0835f5..b9970e5b56ac7 100644
--- a/read-historical-data.md
+++ b/read-historical-data.md
@@ -2,7 +2,7 @@
title: Read Historical Data
summary: Learn about how TiDB reads data from history versions.
category: how-to
-aliases: ['/docs/stable/how-to/get-started/read-historical-data/']
+aliases: ['/docs/v4.0/read-historical-data/','/docs/stable/how-to/get-started/read-historical-data/']
---
# Read Historical Data
diff --git a/releases/release-1.0-ga.md b/releases/release-1.0-ga.md
index 39f4068f61ff2..de51c0c14e524 100644
--- a/releases/release-1.0-ga.md
+++ b/releases/release-1.0-ga.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0 release notes
category: Releases
-aliases: ['/docs/stable/releases/ga/']
+aliases: ['/docs/v4.0/releases/release-1.0-ga/','/docs/stable/releases/ga/']
---
# TiDB 1.0 Release Notes
diff --git a/releases/release-1.0.1.md b/releases/release-1.0.1.md
index bfd911ac8a4f1..2b300031eb16f 100644
--- a/releases/release-1.0.1.md
+++ b/releases/release-1.0.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/101/']
+aliases: ['/docs/v4.0/releases/release-1.0.1/','/docs/stable/releases/101/']
---
# TiDB 1.0.1 Release Notes
diff --git a/releases/release-1.0.2.md b/releases/release-1.0.2.md
index 65f7c68a548de..a713ab6780a66 100644
--- a/releases/release-1.0.2.md
+++ b/releases/release-1.0.2.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0.2 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/102/']
+aliases: ['/docs/v4.0/releases/release-1.0.2/','/docs/stable/releases/102/']
---
# TiDB 1.0.2 Release Notes
diff --git a/releases/release-1.0.3.md b/releases/release-1.0.3.md
index 96e1c2efa2b30..655aa63f5065f 100644
--- a/releases/release-1.0.3.md
+++ b/releases/release-1.0.3.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0.3 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/103/']
+aliases: ['/docs/v4.0/releases/release-1.0.3/','/docs/stable/releases/103/']
---
# TiDB 1.0.3 Release Notes
diff --git a/releases/release-1.0.4.md b/releases/release-1.0.4.md
index 2cbbf37a65067..17dd500d9cd9b 100644
--- a/releases/release-1.0.4.md
+++ b/releases/release-1.0.4.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0.4 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/104/']
+aliases: ['/docs/v4.0/releases/release-1.0.4/','/docs/stable/releases/104/']
---
# TiDB 1.0.4 Release Notes
diff --git a/releases/release-1.0.5.md b/releases/release-1.0.5.md
index 67422f77a37f2..ba363dcf5ee37 100644
--- a/releases/release-1.0.5.md
+++ b/releases/release-1.0.5.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0.5 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/105/']
+aliases: ['/docs/v4.0/releases/release-1.0.5/','/docs/stable/releases/105/']
---
# TiDB 1.0.5 Release Notes
diff --git a/releases/release-1.0.6.md b/releases/release-1.0.6.md
index 6e611cba5f355..1332e949ff333 100644
--- a/releases/release-1.0.6.md
+++ b/releases/release-1.0.6.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0.6 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/106/']
+aliases: ['/docs/v4.0/releases/release-1.0.6/','/docs/stable/releases/106/']
---
# TiDB 1.0.6 Release Notes
diff --git a/releases/release-1.0.7.md b/releases/release-1.0.7.md
index 25a57d37061cf..9fde67b576e93 100644
--- a/releases/release-1.0.7.md
+++ b/releases/release-1.0.7.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0.7 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/107/']
+aliases: ['/docs/v4.0/releases/release-1.0.7/','/docs/stable/releases/107/']
---
# TiDB 1.0.7 Release Notes
diff --git a/releases/release-1.0.8.md b/releases/release-1.0.8.md
index 899cff4453c26..6dd9c9645f8f8 100644
--- a/releases/release-1.0.8.md
+++ b/releases/release-1.0.8.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.0.8 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/108/']
+aliases: ['/docs/v4.0/releases/release-1.0.8/','/docs/stable/releases/108/']
---
# TiDB 1.0.8 Release Notes
diff --git a/releases/release-1.1-alpha.md b/releases/release-1.1-alpha.md
index c0633b6e7913b..cf0d8ad7e7b13 100644
--- a/releases/release-1.1-alpha.md
+++ b/releases/release-1.1-alpha.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.1 Alpha Release Notes
category: Releases
-aliases: ['/docs/stable/releases/11alpha/']
+aliases: ['/docs/v4.0/releases/release-1.1-alpha/','/docs/stable/releases/11alpha/']
---
# TiDB 1.1 Alpha Release Notes
diff --git a/releases/release-1.1-beta.md b/releases/release-1.1-beta.md
index 6b5b4aaa89471..25f1d5f114d71 100644
--- a/releases/release-1.1-beta.md
+++ b/releases/release-1.1-beta.md
@@ -1,7 +1,7 @@
---
title: TiDB 1.1 Beta Release Notes
category: Releases
-aliases: ['/docs/stable/releases/11beta/']
+aliases: ['/docs/v4.0/releases/release-1.1-beta/','/docs/stable/releases/11beta/']
---
# TiDB 1.1 Beta Release Notes
diff --git a/releases/release-2.0-ga.md b/releases/release-2.0-ga.md
index d11d3a2333ed8..059c36b6f9a7f 100644
--- a/releases/release-2.0-ga.md
+++ b/releases/release-2.0-ga.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.0ga/']
+aliases: ['/docs/v4.0/releases/release-2.0-ga/','/docs/stable/releases/2.0ga/']
---
# TiDB 2.0 Release Notes
diff --git a/releases/release-2.0-rc.1.md b/releases/release-2.0-rc.1.md
index 6b056ad126feb..407e1c1348d8c 100644
--- a/releases/release-2.0-rc.1.md
+++ b/releases/release-2.0-rc.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0 RC1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2rc1/']
+aliases: ['/docs/v4.0/releases/release-2.0-rc.1/','/docs/stable/releases/2rc1/']
---
# TiDB 2.0 RC1 Release Notes
diff --git a/releases/release-2.0-rc.3.md b/releases/release-2.0-rc.3.md
index 83a47fdfe0dee..b97b4078d0357 100644
--- a/releases/release-2.0-rc.3.md
+++ b/releases/release-2.0-rc.3.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0 RC3 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2rc3/']
+aliases: ['/docs/v4.0/releases/release-2.0-rc.3/','/docs/stable/releases/2rc3/']
---
# TiDB 2.0 RC3 Release Notes
diff --git a/releases/release-2.0-rc.4.md b/releases/release-2.0-rc.4.md
index 48346bbceb04d..ee8e0ca25538c 100644
--- a/releases/release-2.0-rc.4.md
+++ b/releases/release-2.0-rc.4.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0 RC4 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2rc4/']
+aliases: ['/docs/v4.0/releases/release-2.0-rc.4/','/docs/stable/releases/2rc4/']
---
# TiDB 2.0 RC4 Release Notes
diff --git a/releases/release-2.0-rc.5.md b/releases/release-2.0-rc.5.md
index fc43bfed05846..a11df185eba02 100644
--- a/releases/release-2.0-rc.5.md
+++ b/releases/release-2.0-rc.5.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0 RC5 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2rc5/']
+aliases: ['/docs/v4.0/releases/release-2.0-rc.5/','/docs/stable/releases/2rc5/']
---
# TiDB 2.0 RC5 Release Notes
diff --git a/releases/release-2.0.1.md b/releases/release-2.0.1.md
index 36905bdb495f5..fae557d4aefa0 100644
--- a/releases/release-2.0.1.md
+++ b/releases/release-2.0.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/201/']
+aliases: ['/docs/v4.0/releases/release-2.0.1/','/docs/stable/releases/201/']
---
# TiDB 2.0.1 Release Notes
diff --git a/releases/release-2.0.10.md b/releases/release-2.0.10.md
index be77c119d06bb..e63d2ce92dbde 100644
--- a/releases/release-2.0.10.md
+++ b/releases/release-2.0.10.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.10 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.0.10/']
+aliases: ['/docs/v4.0/releases/release-2.0.10/','/docs/stable/releases/2.0.10/']
---
# TiDB 2.0.10 Release Notes
diff --git a/releases/release-2.0.11.md b/releases/release-2.0.11.md
index 0b6b4bb572bcf..bfa1ce7859842 100644
--- a/releases/release-2.0.11.md
+++ b/releases/release-2.0.11.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.11 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.0.11/']
+aliases: ['/docs/v4.0/releases/release-2.0.11/','/docs/stable/releases/2.0.11/']
---
# TiDB 2.0.11 Release Notes
diff --git a/releases/release-2.0.2.md b/releases/release-2.0.2.md
index d3d735bd36e71..641a4341845c7 100644
--- a/releases/release-2.0.2.md
+++ b/releases/release-2.0.2.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.2 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/202/']
+aliases: ['/docs/v4.0/releases/release-2.0.2/','/docs/stable/releases/202/']
---
# TiDB 2.0.2 Release Notes
diff --git a/releases/release-2.0.3.md b/releases/release-2.0.3.md
index 981853fc7fe1b..b01d6b9bebc24 100644
--- a/releases/release-2.0.3.md
+++ b/releases/release-2.0.3.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.3 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/203/']
+aliases: ['/docs/v4.0/releases/release-2.0.3/','/docs/stable/releases/203/']
---
# TiDB 2.0.3 Release Notes
diff --git a/releases/release-2.0.4.md b/releases/release-2.0.4.md
index 15c8310c111b2..3895df976eda2 100644
--- a/releases/release-2.0.4.md
+++ b/releases/release-2.0.4.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.4 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/204/']
+aliases: ['/docs/v4.0/releases/release-2.0.4/','/docs/stable/releases/204/']
---
# TiDB 2.0.4 Release Notes
diff --git a/releases/release-2.0.5.md b/releases/release-2.0.5.md
index 5a1e64e7006b2..dd8ee429796a5 100644
--- a/releases/release-2.0.5.md
+++ b/releases/release-2.0.5.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.5 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/205/']
+aliases: ['/docs/v4.0/releases/release-2.0.5/','/docs/stable/releases/205/']
---
# TiDB 2.0.5 Release Notes
diff --git a/releases/release-2.0.6.md b/releases/release-2.0.6.md
index e46a88fcac73e..a57cd60a334af 100644
--- a/releases/release-2.0.6.md
+++ b/releases/release-2.0.6.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.6 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/206/']
+aliases: ['/docs/v4.0/releases/release-2.0.6/','/docs/stable/releases/206/']
---
# TiDB 2.0.6 Release Notes
diff --git a/releases/release-2.0.7.md b/releases/release-2.0.7.md
index dc32761d94dd0..92ec79d970ee9 100644
--- a/releases/release-2.0.7.md
+++ b/releases/release-2.0.7.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.7 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/207/']
+aliases: ['/docs/v4.0/releases/release-2.0.7/','/docs/stable/releases/207/']
---
# TiDB 2.0.7 Release Notes
diff --git a/releases/release-2.0.8.md b/releases/release-2.0.8.md
index 6be0327718b33..b54e7fe625444 100644
--- a/releases/release-2.0.8.md
+++ b/releases/release-2.0.8.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.8 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/208/']
+aliases: ['/docs/v4.0/releases/release-2.0.8/','/docs/stable/releases/208/']
---
# TiDB 2.0.8 Release Notes
diff --git a/releases/release-2.0.9.md b/releases/release-2.0.9.md
index 905f7090633c5..17fcf86dc54c7 100644
--- a/releases/release-2.0.9.md
+++ b/releases/release-2.0.9.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.0.9 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/209/']
+aliases: ['/docs/v4.0/releases/release-2.0.9/','/docs/stable/releases/209/']
---
# TiDB 2.0.9 Release Notes
diff --git a/releases/release-2.1-beta.md b/releases/release-2.1-beta.md
index 66ddefa08f1d6..129a1692dc16a 100644
--- a/releases/release-2.1-beta.md
+++ b/releases/release-2.1-beta.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1 Beta Release Notes
category: Releases
-aliases: ['/docs/stable/releases/21beta/']
+aliases: ['/docs/v4.0/releases/release-2.1-beta/','/docs/stable/releases/21beta/']
---
# TiDB 2.1 Beta Release Notes
diff --git a/releases/release-2.1-ga.md b/releases/release-2.1-ga.md
index 2a010df94137d..dcc4c4b5003da 100644
--- a/releases/release-2.1-ga.md
+++ b/releases/release-2.1-ga.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1 GA Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1ga/']
+aliases: ['/docs/v4.0/releases/release-2.1-ga/','/docs/stable/releases/2.1ga/']
---
# TiDB 2.1 GA Release Notes
diff --git a/releases/release-2.1-rc.1.md b/releases/release-2.1-rc.1.md
index b8a148298bdff..b609390a9a984 100644
--- a/releases/release-2.1-rc.1.md
+++ b/releases/release-2.1-rc.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1 RC1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/21rc1/']
+aliases: ['/docs/v4.0/releases/release-2.1-rc.1/','/docs/stable/releases/21rc1/']
---
# TiDB 2.1 RC1 Release Notes
diff --git a/releases/release-2.1-rc.2.md b/releases/release-2.1-rc.2.md
index ac13136a90a71..0622ad44c19ae 100644
--- a/releases/release-2.1-rc.2.md
+++ b/releases/release-2.1-rc.2.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1 RC2 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/21rc2/']
+aliases: ['/docs/v4.0/releases/release-2.1-rc.2/','/docs/stable/releases/21rc2/']
---
# TiDB 2.1 RC2 Release Notes
diff --git a/releases/release-2.1-rc.3.md b/releases/release-2.1-rc.3.md
index 000d7741d8268..859d80db95856 100644
--- a/releases/release-2.1-rc.3.md
+++ b/releases/release-2.1-rc.3.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1 RC3 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/21rc3/']
+aliases: ['/docs/v4.0/releases/release-2.1-rc.3/','/docs/stable/releases/21rc3/']
---
# TiDB 2.1 RC3 Release Notes
diff --git a/releases/release-2.1-rc.4.md b/releases/release-2.1-rc.4.md
index fe51dc22799cf..d94fa852f17d9 100644
--- a/releases/release-2.1-rc.4.md
+++ b/releases/release-2.1-rc.4.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1 RC4 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/21rc4/']
+aliases: ['/docs/v4.0/releases/release-2.1-rc.4/','/docs/stable/releases/21rc4/']
---
# TiDB 2.1 RC4 Release Notes
diff --git a/releases/release-2.1-rc.5.md b/releases/release-2.1-rc.5.md
index 33b44902da31f..41380457f54f5 100644
--- a/releases/release-2.1-rc.5.md
+++ b/releases/release-2.1-rc.5.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1 RC5 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/21rc5/']
+aliases: ['/docs/v4.0/releases/release-2.1-rc.5/','/docs/stable/releases/21rc5/']
---
diff --git a/releases/release-2.1.1.md b/releases/release-2.1.1.md
index 000e3c42410c0..535a93291be42 100644
--- a/releases/release-2.1.1.md
+++ b/releases/release-2.1.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.1/']
+aliases: ['/docs/v4.0/releases/release-2.1.1/','/docs/stable/releases/2.1.1/']
---
# TiDB 2.1.1 Release Notes
diff --git a/releases/release-2.1.10.md b/releases/release-2.1.10.md
index d7a6a3357c99e..60851fdaf2457 100644
--- a/releases/release-2.1.10.md
+++ b/releases/release-2.1.10.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.10 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.10/']
+aliases: ['/docs/v4.0/releases/release-2.1.10/','/docs/stable/releases/2.1.10/']
---
# TiDB 2.1.10 Release Notes
diff --git a/releases/release-2.1.11.md b/releases/release-2.1.11.md
index 326c0f9e28d9d..a531de3ccd4d1 100644
--- a/releases/release-2.1.11.md
+++ b/releases/release-2.1.11.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.11 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.11/']
+aliases: ['/docs/v4.0/releases/release-2.1.11/','/docs/stable/releases/2.1.11/']
---
# TiDB 2.1.11 Release Notes
diff --git a/releases/release-2.1.12.md b/releases/release-2.1.12.md
index ba82455882253..6bc46dfae7c13 100644
--- a/releases/release-2.1.12.md
+++ b/releases/release-2.1.12.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.12 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.12/']
+aliases: ['/docs/v4.0/releases/release-2.1.12/','/docs/stable/releases/2.1.12/']
---
# TiDB 2.1.12 Release Notes
diff --git a/releases/release-2.1.13.md b/releases/release-2.1.13.md
index 64a6a0f078823..3219fd7d3f09f 100644
--- a/releases/release-2.1.13.md
+++ b/releases/release-2.1.13.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.13 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.13/']
+aliases: ['/docs/v4.0/releases/release-2.1.13/','/docs/stable/releases/2.1.13/']
---
# TiDB 2.1.13 Release Notes
diff --git a/releases/release-2.1.14.md b/releases/release-2.1.14.md
index c3900053f2489..e8b29e1a15efb 100644
--- a/releases/release-2.1.14.md
+++ b/releases/release-2.1.14.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.14 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.14/']
+aliases: ['/docs/v4.0/releases/release-2.1.14/','/docs/stable/releases/2.1.14/']
---
# TiDB 2.1.14 Release Notes
diff --git a/releases/release-2.1.15.md b/releases/release-2.1.15.md
index ba443b29bdda9..a93875caf4204 100644
--- a/releases/release-2.1.15.md
+++ b/releases/release-2.1.15.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.15 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.15/']
+aliases: ['/docs/v4.0/releases/release-2.1.15/','/docs/stable/releases/2.1.15/']
---
# TiDB 2.1.15 Release Notes
diff --git a/releases/release-2.1.16.md b/releases/release-2.1.16.md
index 8185e1c7dba02..5ab5ff8c784f3 100644
--- a/releases/release-2.1.16.md
+++ b/releases/release-2.1.16.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.16 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.16/']
+aliases: ['/docs/v4.0/releases/release-2.1.16/','/docs/stable/releases/2.1.16/']
---
# TiDB 2.1.16 Release Notes
diff --git a/releases/release-2.1.17.md b/releases/release-2.1.17.md
index 9279172d114cc..5d2bbbfcf48b4 100644
--- a/releases/release-2.1.17.md
+++ b/releases/release-2.1.17.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.17 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.17/']
+aliases: ['/docs/v4.0/releases/release-2.1.17/','/docs/stable/releases/2.1.17/']
---
# TiDB 2.1.17 Release Notes
diff --git a/releases/release-2.1.18.md b/releases/release-2.1.18.md
index 05b1d4660b01b..d4c5b72162556 100644
--- a/releases/release-2.1.18.md
+++ b/releases/release-2.1.18.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.18 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.18/']
+aliases: ['/docs/v4.0/releases/release-2.1.18/','/docs/stable/releases/2.1.18/']
---
# TiDB 2.1.18 Release Notes
diff --git a/releases/release-2.1.19.md b/releases/release-2.1.19.md
index 572a740d4dafb..1e164353113d6 100644
--- a/releases/release-2.1.19.md
+++ b/releases/release-2.1.19.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.19 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.19/']
+aliases: ['/docs/v4.0/releases/release-2.1.19/','/docs/stable/releases/2.1.19/']
---
# TiDB 2.1.19 Release Notes
diff --git a/releases/release-2.1.2.md b/releases/release-2.1.2.md
index 8a8332c04db44..906fbcbe1355e 100644
--- a/releases/release-2.1.2.md
+++ b/releases/release-2.1.2.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.2 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.2/']
+aliases: ['/docs/v4.0/releases/release-2.1.2/','/docs/stable/releases/2.1.2/']
---
# TiDB 2.1.2 Release Notes
diff --git a/releases/release-2.1.3.md b/releases/release-2.1.3.md
index a7e75d52f99e9..5b126a6a113ee 100644
--- a/releases/release-2.1.3.md
+++ b/releases/release-2.1.3.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.3 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.3/']
+aliases: ['/docs/v4.0/releases/release-2.1.3/','/docs/stable/releases/2.1.3/']
---
# TiDB 2.1.3 Release Notes
diff --git a/releases/release-2.1.4.md b/releases/release-2.1.4.md
index aae35599e15ea..4e9dab8af2cd7 100644
--- a/releases/release-2.1.4.md
+++ b/releases/release-2.1.4.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.4 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.4/']
+aliases: ['/docs/v4.0/releases/release-2.1.4/','/docs/stable/releases/2.1.4/']
---
# TiDB 2.1.4 Release Notes
diff --git a/releases/release-2.1.5.md b/releases/release-2.1.5.md
index 2462bdb1a1ca5..92e841890f429 100644
--- a/releases/release-2.1.5.md
+++ b/releases/release-2.1.5.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.5 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.5/']
+aliases: ['/docs/v4.0/releases/release-2.1.5/','/docs/stable/releases/2.1.5/']
---
# TiDB 2.1.5 Release Notes
diff --git a/releases/release-2.1.6.md b/releases/release-2.1.6.md
index 9790b4952b1ed..d9ff22bad039d 100644
--- a/releases/release-2.1.6.md
+++ b/releases/release-2.1.6.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.6 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.6/']
+aliases: ['/docs/v4.0/releases/release-2.1.6/','/docs/stable/releases/2.1.6/']
---
# TiDB 2.1.6 Release Notes
diff --git a/releases/release-2.1.7.md b/releases/release-2.1.7.md
index e7718f6f60658..d03813869208b 100644
--- a/releases/release-2.1.7.md
+++ b/releases/release-2.1.7.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.7 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.7/']
+aliases: ['/docs/v4.0/releases/release-2.1.7/','/docs/stable/releases/2.1.7/']
---
# TiDB 2.1.7 Release Notes
diff --git a/releases/release-2.1.8.md b/releases/release-2.1.8.md
index f285ce3649cdf..cfd1d40cd8403 100644
--- a/releases/release-2.1.8.md
+++ b/releases/release-2.1.8.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.8 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.8/']
+aliases: ['/docs/v4.0/releases/release-2.1.8/','/docs/stable/releases/2.1.8/']
---
# TiDB 2.1.8 Release Notes
diff --git a/releases/release-2.1.9.md b/releases/release-2.1.9.md
index 8f6e77fa904f6..b1b733cb9807f 100644
--- a/releases/release-2.1.9.md
+++ b/releases/release-2.1.9.md
@@ -1,7 +1,7 @@
---
title: TiDB 2.1.9 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/2.1.9/']
+aliases: ['/docs/v4.0/releases/release-2.1.9/','/docs/stable/releases/2.1.9/']
---
# TiDB 2.1.9 Release Notes
diff --git a/releases/release-3.0-beta.md b/releases/release-3.0-beta.md
index e8a3dbb33e7b3..fe13967b69f98 100644
--- a/releases/release-3.0-beta.md
+++ b/releases/release-3.0-beta.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0 Beta Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0beta/']
+aliases: ['/docs/v4.0/releases/release-3.0-beta/','/docs/stable/releases/3.0beta/']
---
# TiDB 3.0 Beta Release Notes
diff --git a/releases/release-3.0-ga.md b/releases/release-3.0-ga.md
index e4b0a32a24786..5f90bcbc288e3 100644
--- a/releases/release-3.0-ga.md
+++ b/releases/release-3.0-ga.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0 GA Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0-ga/']
+aliases: ['/docs/v4.0/releases/release-3.0-ga/','/docs/stable/releases/3.0-ga/']
---
# TiDB 3.0 GA Release Notes
diff --git a/releases/release-3.0.0-beta.1.md b/releases/release-3.0.0-beta.1.md
index ff70b283f46c8..21e63768283e4 100644
--- a/releases/release-3.0.0-beta.1.md
+++ b/releases/release-3.0.0-beta.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.0 Beta.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.0-beta.1/']
+aliases: ['/docs/v4.0/releases/release-3.0.0-beta.1/','/docs/stable/releases/3.0.0-beta.1/']
---
# TiDB 3.0.0 Beta.1 Release Notes
diff --git a/releases/release-3.0.0-rc.1.md b/releases/release-3.0.0-rc.1.md
index 5e378e8798ba7..b4aee26e0fc37 100644
--- a/releases/release-3.0.0-rc.1.md
+++ b/releases/release-3.0.0-rc.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.0-rc.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.0-rc.1/']
+aliases: ['/docs/v4.0/releases/release-3.0.0-rc.1/','/docs/stable/releases/3.0.0-rc.1/']
---
# TiDB 3.0.0-rc.1 Release Notes
diff --git a/releases/release-3.0.0-rc.2.md b/releases/release-3.0.0-rc.2.md
index 35b46535b3a65..4a6900e587553 100644
--- a/releases/release-3.0.0-rc.2.md
+++ b/releases/release-3.0.0-rc.2.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.0-rc.2 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.0-rc.2/']
+aliases: ['/docs/v4.0/releases/release-3.0.0-rc.2/','/docs/stable/releases/3.0.0-rc.2/']
---
# TiDB 3.0.0-rc.2 Release Notes
diff --git a/releases/release-3.0.0-rc.3.md b/releases/release-3.0.0-rc.3.md
index ca53b9576ad6f..8e6e39142a2d8 100644
--- a/releases/release-3.0.0-rc.3.md
+++ b/releases/release-3.0.0-rc.3.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.0-rc.3 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.0-rc.3/']
+aliases: ['/docs/v4.0/releases/release-3.0.0-rc.3/','/docs/stable/releases/3.0.0-rc.3/']
---
# TiDB 3.0.0-rc.3 Release Notes
diff --git a/releases/release-3.0.1.md b/releases/release-3.0.1.md
index acb259f338efb..03a9f5e5c4100 100644
--- a/releases/release-3.0.1.md
+++ b/releases/release-3.0.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.1/']
+aliases: ['/docs/v4.0/releases/release-3.0.1/','/docs/stable/releases/3.0.1/']
---
# TiDB 3.0.1 Release Notes
diff --git a/releases/release-3.0.10.md b/releases/release-3.0.10.md
index 2cb9fbe7697d7..421c2e5316600 100644
--- a/releases/release-3.0.10.md
+++ b/releases/release-3.0.10.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.10 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.10/']
+aliases: ['/docs/v4.0/releases/release-3.0.10/','/docs/stable/releases/3.0.10/']
---
# TiDB 3.0.10 Release Notes
diff --git a/releases/release-3.0.11.md b/releases/release-3.0.11.md
index b8a89f329f90f..66efd93cbaae5 100644
--- a/releases/release-3.0.11.md
+++ b/releases/release-3.0.11.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.11 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.11/']
+aliases: ['/docs/v4.0/releases/release-3.0.11/','/docs/stable/releases/3.0.11/']
---
# TiDB 3.0.11 Release Notes
diff --git a/releases/release-3.0.12.md b/releases/release-3.0.12.md
index c781e87ee725e..0da5cebdc56ee 100644
--- a/releases/release-3.0.12.md
+++ b/releases/release-3.0.12.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.12 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.12/']
+aliases: ['/docs/v4.0/releases/release-3.0.12/','/docs/stable/releases/3.0.12/']
---
# TiDB 3.0.12 Release Notes
diff --git a/releases/release-3.0.13.md b/releases/release-3.0.13.md
index cbcc426c64d7c..22031779f1442 100644
--- a/releases/release-3.0.13.md
+++ b/releases/release-3.0.13.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.13 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.13/']
+aliases: ['/docs/v4.0/releases/release-3.0.13/','/docs/stable/releases/3.0.13/']
---
# TiDB 3.0.13 Release Notes
diff --git a/releases/release-3.0.14.md b/releases/release-3.0.14.md
index 6eb8f76e8936d..974179cfadfdd 100644
--- a/releases/release-3.0.14.md
+++ b/releases/release-3.0.14.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.14 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.14/']
+aliases: ['/docs/v4.0/releases/release-3.0.14/','/docs/stable/releases/3.0.14/']
---
# TiDB 3.0.14 Release Notes
diff --git a/releases/release-3.0.15.md b/releases/release-3.0.15.md
index 08c26a67b91a7..8fa1763cd70c4 100644
--- a/releases/release-3.0.15.md
+++ b/releases/release-3.0.15.md
@@ -1,6 +1,7 @@
---
title: TiDB 3.0.15 Release Notes
category: Releases
+aliases: ['/docs/v4.0/releases/release-3.0.15/']
---
# TiDB 3.0.15 Release Notes
diff --git a/releases/release-3.0.2.md b/releases/release-3.0.2.md
index 582db7032651a..380a0e6456bd7 100644
--- a/releases/release-3.0.2.md
+++ b/releases/release-3.0.2.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.2 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.2/']
+aliases: ['/docs/v4.0/releases/release-3.0.2/','/docs/stable/releases/3.0.2/']
---
# TiDB 3.0.2 Release Notes
diff --git a/releases/release-3.0.3.md b/releases/release-3.0.3.md
index 17a5b892f912b..fc6402ac4bf84 100644
--- a/releases/release-3.0.3.md
+++ b/releases/release-3.0.3.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.3 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.3/']
+aliases: ['/docs/v4.0/releases/release-3.0.3/','/docs/stable/releases/3.0.3/']
---
# TiDB 3.0.3 Release Notes
diff --git a/releases/release-3.0.4.md b/releases/release-3.0.4.md
index afc32bffd2e64..6e9aaf04e305e 100644
--- a/releases/release-3.0.4.md
+++ b/releases/release-3.0.4.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.4 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.4/']
+aliases: ['/docs/v4.0/releases/release-3.0.4/','/docs/stable/releases/3.0.4/']
---
# TiDB 3.0.4 Release Notes
diff --git a/releases/release-3.0.5.md b/releases/release-3.0.5.md
index 6aea835473079..bb7723a4dc7bb 100644
--- a/releases/release-3.0.5.md
+++ b/releases/release-3.0.5.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.5 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.5/']
+aliases: ['/docs/v4.0/releases/release-3.0.5/','/docs/stable/releases/3.0.5/']
---
# TiDB 3.0.5 Release Notes
diff --git a/releases/release-3.0.6.md b/releases/release-3.0.6.md
index e6ee89d1ffba9..6365e5155bcf5 100644
--- a/releases/release-3.0.6.md
+++ b/releases/release-3.0.6.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.6 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.6/']
+aliases: ['/docs/v4.0/releases/release-3.0.6/','/docs/stable/releases/3.0.6/']
---
# TiDB 3.0.6 Release Notes
diff --git a/releases/release-3.0.7.md b/releases/release-3.0.7.md
index a059bf412a939..a502033b2fdac 100644
--- a/releases/release-3.0.7.md
+++ b/releases/release-3.0.7.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.7 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.7/']
+aliases: ['/docs/v4.0/releases/release-3.0.7/','/docs/stable/releases/3.0.7/']
---
# TiDB 3.0.7 Release Notes
diff --git a/releases/release-3.0.8.md b/releases/release-3.0.8.md
index 63cf27f2370da..552086a6da33b 100644
--- a/releases/release-3.0.8.md
+++ b/releases/release-3.0.8.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.8 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.8/']
+aliases: ['/docs/v4.0/releases/release-3.0.8/','/docs/stable/releases/3.0.8/']
---
# TiDB 3.0.8 Release Notes
diff --git a/releases/release-3.0.9.md b/releases/release-3.0.9.md
index a639fea38730e..279ea5da33a26 100644
--- a/releases/release-3.0.9.md
+++ b/releases/release-3.0.9.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.0.9 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.0.9/']
+aliases: ['/docs/v4.0/releases/release-3.0.9/','/docs/stable/releases/3.0.9/']
---
# TiDB 3.0.9 Release Notes
diff --git a/releases/release-3.1.0-beta.1.md b/releases/release-3.1.0-beta.1.md
index 83efec3fe5a60..b564a13d490c1 100644
--- a/releases/release-3.1.0-beta.1.md
+++ b/releases/release-3.1.0-beta.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.1 Beta.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.1.0-beta.1/']
+aliases: ['/docs/v4.0/releases/release-3.1.0-beta.1/','/docs/stable/releases/3.1.0-beta.1/']
---
# TiDB 3.1 Beta.1 Release Notes
diff --git a/releases/release-3.1.0-beta.2.md b/releases/release-3.1.0-beta.2.md
index 1a2c74db42b46..c73f3d0ced309 100644
--- a/releases/release-3.1.0-beta.2.md
+++ b/releases/release-3.1.0-beta.2.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.1 Beta.2 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.1.0-beta.2/']
+aliases: ['/docs/v4.0/releases/release-3.1.0-beta.2/','/docs/stable/releases/3.1.0-beta.2/']
---
# TiDB 3.1 Beta.2 Release Notes
diff --git a/releases/release-3.1.0-beta.md b/releases/release-3.1.0-beta.md
index e330204b1516c..1f5dfd9ea4541 100644
--- a/releases/release-3.1.0-beta.md
+++ b/releases/release-3.1.0-beta.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.1 Beta Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.1.0-beta/']
+aliases: ['/docs/v4.0/releases/release-3.1.0-beta/','/docs/stable/releases/3.1.0-beta/']
---
# TiDB 3.1 Beta Release Notes
diff --git a/releases/release-3.1.0-ga.md b/releases/release-3.1.0-ga.md
index 47ce01c77206e..7498bf693a094 100644
--- a/releases/release-3.1.0-ga.md
+++ b/releases/release-3.1.0-ga.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.1.0 GA Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.1.0-ga/']
+aliases: ['/docs/v4.0/releases/release-3.1.0-ga/','/docs/stable/releases/3.1.0-ga/']
---
# TiDB 3.1.0 GA Release Notes
diff --git a/releases/release-3.1.0-rc.md b/releases/release-3.1.0-rc.md
index e4f7418a12919..9b5577f853104 100644
--- a/releases/release-3.1.0-rc.md
+++ b/releases/release-3.1.0-rc.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.1 RC Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.1.0-rc/']
+aliases: ['/docs/v4.0/releases/release-3.1.0-rc/','/docs/stable/releases/3.1.0-rc/']
---
# TiDB 3.1 RC Release Notes
diff --git a/releases/release-3.1.1.md b/releases/release-3.1.1.md
index f3c392d71f7e2..575dbd1337e16 100644
--- a/releases/release-3.1.1.md
+++ b/releases/release-3.1.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 3.1.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/3.1.1/']
+aliases: ['/docs/v4.0/releases/release-3.1.1/','/docs/stable/releases/3.1.1/']
---
# TiDB 3.1.1 Release Notes
diff --git a/releases/release-3.1.2.md b/releases/release-3.1.2.md
index b8547c5016180..1f953132ddc3f 100644
--- a/releases/release-3.1.2.md
+++ b/releases/release-3.1.2.md
@@ -1,6 +1,7 @@
---
title: TiDB 3.1.2 Release Notes
category: Releases
+aliases: ['/docs/v4.0/releases/release-3.1.2/']
---
# TiDB 3.1.2 Release Notes
diff --git a/releases/release-4.0-ga.md b/releases/release-4.0-ga.md
index 5431854a1a727..25e6c1024b16a 100644
--- a/releases/release-4.0-ga.md
+++ b/releases/release-4.0-ga.md
@@ -1,6 +1,7 @@
---
title: TiDB 4.0 GA Release Notes
category: Releases
+aliases: ['/docs/v4.0/releases/release-4.0-ga/']
---
# TiDB 4.0 GA Release Notes
diff --git a/releases/release-4.0.0-beta.1.md b/releases/release-4.0.0-beta.1.md
index e3c743a4dea52..dc41f509e9b0b 100644
--- a/releases/release-4.0.0-beta.1.md
+++ b/releases/release-4.0.0-beta.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 4.0.0 Beta.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/4.0.0-beta.1/']
+aliases: ['/docs/v4.0/releases/release-4.0.0-beta.1/','/docs/stable/releases/4.0.0-beta.1/']
---
# TiDB 4.0.0 Beta.1 Release Notes
diff --git a/releases/release-4.0.0-beta.2.md b/releases/release-4.0.0-beta.2.md
index 0793541e90a9e..af516ff3b227c 100644
--- a/releases/release-4.0.0-beta.2.md
+++ b/releases/release-4.0.0-beta.2.md
@@ -1,7 +1,7 @@
---
title: TiDB 4.0.0 Beta.2 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/4.0.0-beta.2/']
+aliases: ['/docs/v4.0/releases/release-4.0.0-beta.2/','/docs/stable/releases/4.0.0-beta.2/']
---
# TiDB 4.0.0 Beta.2 Release Notes
diff --git a/releases/release-4.0.0-beta.md b/releases/release-4.0.0-beta.md
index e5817baf63a79..32d430ee7ecb7 100644
--- a/releases/release-4.0.0-beta.md
+++ b/releases/release-4.0.0-beta.md
@@ -1,7 +1,7 @@
---
title: TiDB 4.0 Beta Release Notes
category: Releases
-aliases: ['/docs/stable/releases/4.0.0-beta/']
+aliases: ['/docs/v4.0/releases/release-4.0.0-beta/','/docs/stable/releases/4.0.0-beta/']
---
# TiDB 4.0 Beta Release Notes
diff --git a/releases/release-4.0.0-rc.1.md b/releases/release-4.0.0-rc.1.md
index 3459eb91d8dea..1ff13f8833a08 100644
--- a/releases/release-4.0.0-rc.1.md
+++ b/releases/release-4.0.0-rc.1.md
@@ -1,7 +1,7 @@
---
title: TiDB 4.0 RC.1 Release Notes
category: Releases
-aliases: ['/docs/stable/releases/4.0.0-rc.1/']
+aliases: ['/docs/v4.0/releases/release-4.0.0-rc.1/','/docs/stable/releases/4.0.0-rc.1/']
---
# TiDB 4.0 RC.1 Release Notes
diff --git a/releases/release-4.0.0-rc.2.md b/releases/release-4.0.0-rc.2.md
index b9c7227e0e6bc..44403708ef4f6 100644
--- a/releases/release-4.0.0-rc.2.md
+++ b/releases/release-4.0.0-rc.2.md
@@ -1,6 +1,7 @@
---
title: TiDB 4.0 RC.2 Release Notes
category: Releases
+aliases: ['/docs/v4.0/releases/release-4.0.0-rc.2/']
---
# TiDB 4.0 RC.2 Release Notes
diff --git a/releases/release-4.0.0-rc.md b/releases/release-4.0.0-rc.md
index 006b3ff979d86..dbc0ba6e3aca6 100644
--- a/releases/release-4.0.0-rc.md
+++ b/releases/release-4.0.0-rc.md
@@ -1,7 +1,7 @@
---
title: TiDB 4.0 RC Release Notes
category: Releases
-aliases: ['/docs/stable/releases/4.0.0-rc/']
+aliases: ['/docs/v4.0/releases/release-4.0.0-rc/','/docs/stable/releases/4.0.0-rc/']
---
# TiDB 4.0 RC Release Notes
diff --git a/releases/release-4.0.1.md b/releases/release-4.0.1.md
index 380db3ac16645..c2a63dbb95dd6 100644
--- a/releases/release-4.0.1.md
+++ b/releases/release-4.0.1.md
@@ -1,6 +1,7 @@
---
title: TiDB 4.0.1 Release Notes
category: Releases
+aliases: ['/docs/v4.0/releases/release-4.0.1/']
---
# TiDB 4.0.1 Release Notes
diff --git a/releases/release-notes.md b/releases/release-notes.md
index 3a62bb2f3652f..7294d82ab5df5 100644
--- a/releases/release-notes.md
+++ b/releases/release-notes.md
@@ -1,7 +1,7 @@
---
title: Release Notes
category: release
-aliases: ['/docs/stable/releases/rn/']
+aliases: ['/docs/v4.0/releases/release-notes/','/docs/stable/releases/rn/']
---
# TiDB Release Notes
diff --git a/releases/release-pre-ga.md b/releases/release-pre-ga.md
index 454492a849057..de6fcbb9f9ad1 100644
--- a/releases/release-pre-ga.md
+++ b/releases/release-pre-ga.md
@@ -1,7 +1,7 @@
---
title: Pre-GA release notes
category: releases
-aliases: ['/docs/stable/releases/prega/']
+aliases: ['/docs/v4.0/releases/release-pre-ga/','/docs/stable/releases/prega/']
---
# Pre-GA Release Notes
diff --git a/releases/release-rc.1.md b/releases/release-rc.1.md
index 98157cf5067e6..7f8e13d1f996d 100644
--- a/releases/release-rc.1.md
+++ b/releases/release-rc.1.md
@@ -1,7 +1,7 @@
---
title: TiDB RC1 Release Notes
category: releases
-aliases: ['/docs/stable/releases/rc1/']
+aliases: ['/docs/v4.0/releases/release-rc.1/','/docs/stable/releases/rc1/']
---
# TiDB RC1 Release Notes
diff --git a/releases/release-rc.2.md b/releases/release-rc.2.md
index c24eedf1a552d..053c765725098 100644
--- a/releases/release-rc.2.md
+++ b/releases/release-rc.2.md
@@ -1,7 +1,7 @@
---
title: TiDB RC2 Release Notes
category: releases
-aliases: ['/docs/stable/releases/rc2/']
+aliases: ['/docs/v4.0/releases/release-rc.2/','/docs/stable/releases/rc2/']
---
# TiDB RC2 Release Notes
diff --git a/releases/release-rc.3.md b/releases/release-rc.3.md
index 3c9ba41adef8e..bed81e3599351 100644
--- a/releases/release-rc.3.md
+++ b/releases/release-rc.3.md
@@ -1,7 +1,7 @@
---
title: TiDB RC3 Release Notes
category: releases
-aliases: ['/docs/stable/releases/rc3/']
+aliases: ['/docs/v4.0/releases/release-rc.3/','/docs/stable/releases/rc3/']
---
# TiDB RC3 Release Notes
diff --git a/releases/release-rc.4.md b/releases/release-rc.4.md
index e43a83d7f6d02..c032ecf0c38e7 100644
--- a/releases/release-rc.4.md
+++ b/releases/release-rc.4.md
@@ -1,7 +1,7 @@
---
title: TiDB RC4 Release Notes
category: releases
-aliases: ['/docs/stable/releases/rc4/']
+aliases: ['/docs/v4.0/releases/release-rc.4/','/docs/stable/releases/rc4/']
---
# TiDB RC4 Release Notes
diff --git a/report-issue.md b/report-issue.md
index c1605b671edcf..ef41f88308d1e 100644
--- a/report-issue.md
+++ b/report-issue.md
@@ -2,6 +2,7 @@
title: Report an Issue
summary: Report an issue with your TiDB installation.
category: support
+aliases: ['/docs/v4.0/report-issue/']
---
# Report an Issue
diff --git a/roadmap.md b/roadmap.md
index a517f976225fa..e2da93fe61c0a 100644
--- a/roadmap.md
+++ b/roadmap.md
@@ -2,6 +2,7 @@
title: TiDB v4.0 Roadmap
summary: Learn about the v4.0 roadmap of TiDB.
category: Roadmap
+aliases: ['/docs/v4.0/roadmap/']
---
diff --git a/role-based-access-control.md b/role-based-access-control.md
index 5b4c2df41c5c3..a6f3f687437e8 100644
--- a/role-based-access-control.md
+++ b/role-based-access-control.md
@@ -2,7 +2,7 @@
title: Role-Based Access Control
summary: This document introduces TiDB RBAC operations and implementation.
category: reference
-aliases: ['/docs/stable/reference/security/role-based-access-control/']
+aliases: ['/docs/v4.0/role-based-access-control/','/docs/stable/reference/security/role-based-access-control/']
---
# Role-Based Access Control
diff --git a/scale-tidb-using-ansible.md b/scale-tidb-using-ansible.md
index ad795e8d5ca5c..57992f8d88320 100644
--- a/scale-tidb-using-ansible.md
+++ b/scale-tidb-using-ansible.md
@@ -2,7 +2,7 @@
title: Scale the TiDB Cluster Using TiDB Ansible
summary: Use TiDB Ansible to increase/decrease the capacity of a TiDB/TiKV/PD node.
category: how-to
-aliases: ['/docs/stable/how-to/scale/with-ansible/']
+aliases: ['/docs/v4.0/scale-tidb-using-ansible/','/docs/stable/how-to/scale/with-ansible/']
---
# Scale the TiDB Cluster Using TiDB Ansible
diff --git a/scale-tidb-using-tiup.md b/scale-tidb-using-tiup.md
index 353f94d3fab1b..9ed90333aeb51 100644
--- a/scale-tidb-using-tiup.md
+++ b/scale-tidb-using-tiup.md
@@ -2,7 +2,7 @@
title: Scale the TiDB Cluster Using TiUP
summary: Learn how to scale the TiDB cluster using TiUP.
category: how-to
-aliases: ['/docs/stable/how-to/scale/with-tiup/']
+aliases: ['/docs/v4.0/scale-tidb-using-tiup/','/docs/stable/how-to/scale/with-tiup/']
---
# Scale the TiDB Cluster Using TiUP
diff --git a/schema-object-names.md b/schema-object-names.md
index 97a5b2a9fa776..78eddae18d77d 100644
--- a/schema-object-names.md
+++ b/schema-object-names.md
@@ -2,7 +2,7 @@
title: Schema Object Names
summary: Learn about the schema object names (identifiers) in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/language-structure/schema-object-names/']
+aliases: ['/docs/v4.0/schema-object-names/','/docs/stable/reference/sql/language-structure/schema-object-names/']
---
# Schema Object Names
diff --git a/security-compatibility-with-mysql.md b/security-compatibility-with-mysql.md
index 570df0625cffa..d8553fc433198 100644
--- a/security-compatibility-with-mysql.md
+++ b/security-compatibility-with-mysql.md
@@ -2,7 +2,7 @@
title: Security Compatibility with MySQL
summary: Learn TiDB's security compatibilities with MySQL.
category: reference
-aliases: ['/docs/stable/reference/security/compatibility/']
+aliases: ['/docs/v4.0/security-compatibility-with-mysql/','/docs/stable/reference/security/compatibility/']
---
# Security Compatibility with MySQL
diff --git a/sql-mode.md b/sql-mode.md
index e1178cc08d49f..201b099b260c4 100644
--- a/sql-mode.md
+++ b/sql-mode.md
@@ -2,7 +2,7 @@
title: SQL Mode
summary: Learn SQL mode.
category: reference
-aliases: ['/docs/stable/reference/sql/sql-mode/']
+aliases: ['/docs/v4.0/sql-mode/','/docs/stable/reference/sql/sql-mode/']
---
# SQL Mode
diff --git a/sql-optimization-concepts.md b/sql-optimization-concepts.md
index 058c27a97e789..4e9b719f5f868 100644
--- a/sql-optimization-concepts.md
+++ b/sql-optimization-concepts.md
@@ -2,7 +2,7 @@
title: SQL Optimization Process
summary: Learn about the logical and physical optimization of SQL in TiDB.
category: reference
-aliases: ['/docs/stable/reference/performance/sql-optimizer-overview/']
+aliases: ['/docs/v4.0/sql-optimization-concepts/','/docs/stable/reference/performance/sql-optimizer-overview/']
---
# SQL Optimization Process
diff --git a/sql-plan-management.md b/sql-plan-management.md
index 1f0385b5ed8b7..39e715f1ff5cc 100644
--- a/sql-plan-management.md
+++ b/sql-plan-management.md
@@ -2,7 +2,7 @@
title: SQL Plan Management (SPM)
summary: Learn about SQL Plan Management in TiDB.
category: reference
-aliases: ['/docs/stable/reference/performance/execution-plan-bind/','/docs/stable/execution-plan-binding/']
+aliases: ['/docs/v4.0/sql-plan-management/','/docs/stable/reference/performance/execution-plan-bind/','/docs/stable/execution-plan-binding/']
---
# SQL Plan Management (SPM)
diff --git a/sql-statements/sql-statement-add-column.md b/sql-statements/sql-statement-add-column.md
index 84203e6774e4f..912ffe505e8bb 100644
--- a/sql-statements/sql-statement-add-column.md
+++ b/sql-statements/sql-statement-add-column.md
@@ -2,7 +2,7 @@
title: ADD COLUMN | TiDB SQL Statement Reference
summary: An overview of the usage of ADD COLUMN for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/add-column/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-add-column/','/docs/stable/reference/sql/statements/add-column/']
---
# ADD COLUMN
diff --git a/sql-statements/sql-statement-add-index.md b/sql-statements/sql-statement-add-index.md
index f79de9e6676f3..5a93cd7d13530 100644
--- a/sql-statements/sql-statement-add-index.md
+++ b/sql-statements/sql-statement-add-index.md
@@ -2,7 +2,7 @@
title: ADD INDEX | TiDB SQL Statement Reference
summary: An overview of the usage of ADD INDEX for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/add-index/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-add-index/','/docs/stable/reference/sql/statements/add-index/']
---
# ADD INDEX
diff --git a/sql-statements/sql-statement-admin.md b/sql-statements/sql-statement-admin.md
index 4fd0c28feaea6..6f687f95fcc67 100644
--- a/sql-statements/sql-statement-admin.md
+++ b/sql-statements/sql-statement-admin.md
@@ -2,7 +2,7 @@
title: ADMIN | TiDB SQL Statement Reference
summary: An overview of the usage of ADMIN for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/admin/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-admin/','/docs/stable/reference/sql/statements/admin/']
---
# ADMIN
diff --git a/sql-statements/sql-statement-alter-database.md b/sql-statements/sql-statement-alter-database.md
index 0d83166b56560..91163309c2cfb 100644
--- a/sql-statements/sql-statement-alter-database.md
+++ b/sql-statements/sql-statement-alter-database.md
@@ -2,7 +2,7 @@
title: ALTER DATABASE | TiDB SQL Statement Reference
summary: An overview of the usage of ALTER DATABASE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/alter-database/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-alter-database/','/docs/stable/reference/sql/statements/alter-database/']
---
# ALTER DATABASE
diff --git a/sql-statements/sql-statement-alter-instance.md b/sql-statements/sql-statement-alter-instance.md
index 9e627b98fbd41..e5c559f7d5509 100644
--- a/sql-statements/sql-statement-alter-instance.md
+++ b/sql-statements/sql-statement-alter-instance.md
@@ -2,7 +2,7 @@
title: ALTER INSTANCE
summary: Learn the overview of the `ALTER INSTANCE` usage in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/alter-instance/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-alter-instance/','/docs/stable/reference/sql/statements/alter-instance/']
---
# ALTER INSTANCE
diff --git a/sql-statements/sql-statement-alter-table.md b/sql-statements/sql-statement-alter-table.md
index 302f65aa4bba7..cdd97082bacc0 100644
--- a/sql-statements/sql-statement-alter-table.md
+++ b/sql-statements/sql-statement-alter-table.md
@@ -2,7 +2,7 @@
title: ALTER TABLE | TiDB SQL Statement Reference
summary: An overview of the usage of ALTER TABLE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/alter-table/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-alter-table/','/docs/stable/reference/sql/statements/alter-table/']
---
# ALTER TABLE
diff --git a/sql-statements/sql-statement-alter-user.md b/sql-statements/sql-statement-alter-user.md
index 22b11761113bb..fbad473ccc1a1 100644
--- a/sql-statements/sql-statement-alter-user.md
+++ b/sql-statements/sql-statement-alter-user.md
@@ -2,7 +2,7 @@
title: ALTER USER | TiDB SQL Statement Reference
summary: An overview of the usage of ALTER USER for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/alter-user/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-alter-user/','/docs/stable/reference/sql/statements/alter-user/']
---
# ALTER USER
diff --git a/sql-statements/sql-statement-analyze-table.md b/sql-statements/sql-statement-analyze-table.md
index a5b86f5861791..51a9d22ecfaa1 100644
--- a/sql-statements/sql-statement-analyze-table.md
+++ b/sql-statements/sql-statement-analyze-table.md
@@ -2,7 +2,7 @@
title: ANALYZE | TiDB SQL Statement Reference
summary: An overview of the usage of ANALYZE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/analyze-table/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-analyze-table/','/docs/stable/reference/sql/statements/analyze-table/']
---
# ANALYZE
diff --git a/sql-statements/sql-statement-backup.md b/sql-statements/sql-statement-backup.md
index 284b9be0db186..000932ce36e58 100644
--- a/sql-statements/sql-statement-backup.md
+++ b/sql-statements/sql-statement-backup.md
@@ -2,6 +2,7 @@
title: BACKUP | TiDB SQL Statement Reference
summary: An overview of the usage of BACKUP for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-backup/']
---
# BACKUP
diff --git a/sql-statements/sql-statement-begin.md b/sql-statements/sql-statement-begin.md
index a794ea777ccde..5beed84bf6dc6 100644
--- a/sql-statements/sql-statement-begin.md
+++ b/sql-statements/sql-statement-begin.md
@@ -2,7 +2,7 @@
title: BEGIN | TiDB SQL Statement Reference
summary: An overview of the usage of BEGIN for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/begin/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-begin/','/docs/stable/reference/sql/statements/begin/']
---
# BEGIN
diff --git a/sql-statements/sql-statement-change-column.md b/sql-statements/sql-statement-change-column.md
index ef04d74446bd7..a73e7209a9715 100644
--- a/sql-statements/sql-statement-change-column.md
+++ b/sql-statements/sql-statement-change-column.md
@@ -2,7 +2,7 @@
title: CHANGE COLUMN | TiDB SQL Statement Reference
summary: An overview of the usage of CHANGE COLUMN for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/change-column/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-change-column/','/docs/stable/reference/sql/statements/change-column/']
---
# CHANGE COLUMN
diff --git a/sql-statements/sql-statement-change-drainer.md b/sql-statements/sql-statement-change-drainer.md
index 4cf9abf18d2eb..601423c2727e7 100644
--- a/sql-statements/sql-statement-change-drainer.md
+++ b/sql-statements/sql-statement-change-drainer.md
@@ -2,6 +2,7 @@
title: CHANGE DRAINER
summary: An overview of the usage of CHANGE DRAINER for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-change-drainer/']
---
# CHANGE DRAINER
diff --git a/sql-statements/sql-statement-change-pump.md b/sql-statements/sql-statement-change-pump.md
index 3e15d4aa9a200..1caeeb1b2ef94 100644
--- a/sql-statements/sql-statement-change-pump.md
+++ b/sql-statements/sql-statement-change-pump.md
@@ -2,6 +2,7 @@
title: CHANGE PUMP
summary: An overview of the usage of CHANGE PUMP for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-change-pump/']
---
# CHANGE PUMP
diff --git a/sql-statements/sql-statement-commit.md b/sql-statements/sql-statement-commit.md
index 274f6bddac604..935ef83b1f273 100644
--- a/sql-statements/sql-statement-commit.md
+++ b/sql-statements/sql-statement-commit.md
@@ -2,7 +2,7 @@
title: COMMIT | TiDB SQL Statement Reference
summary: An overview of the usage of COMMIT for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/commit/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-commit/','/docs/stable/reference/sql/statements/commit/']
---
# COMMIT
diff --git a/sql-statements/sql-statement-create-binding.md b/sql-statements/sql-statement-create-binding.md
index 7e7f095eaac49..b4d9ceeebace6 100644
--- a/sql-statements/sql-statement-create-binding.md
+++ b/sql-statements/sql-statement-create-binding.md
@@ -2,6 +2,7 @@
title: CREATE BINDING
summary: Use of CREATE BINDING in TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-create-binding/']
---
# CREATE BINDING
diff --git a/sql-statements/sql-statement-create-database.md b/sql-statements/sql-statement-create-database.md
index bba040c79f516..62dc1b541424e 100644
--- a/sql-statements/sql-statement-create-database.md
+++ b/sql-statements/sql-statement-create-database.md
@@ -2,7 +2,7 @@
title: CREATE DATABASE | TiDB SQL Statement Reference
summary: An overview of the usage of CREATE DATABASE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/create-database/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-create-database/','/docs/stable/reference/sql/statements/create-database/']
---
# CREATE DATABASE
diff --git a/sql-statements/sql-statement-create-index.md b/sql-statements/sql-statement-create-index.md
index d269bb87ac323..4db0f0bf1443e 100644
--- a/sql-statements/sql-statement-create-index.md
+++ b/sql-statements/sql-statement-create-index.md
@@ -2,7 +2,7 @@
title: CREATE INDEX | TiDB SQL Statement Reference
summary: An overview of the usage of CREATE INDEX for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/create-index/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-create-index/','/docs/stable/reference/sql/statements/create-index/']
---
# CREATE INDEX
diff --git a/sql-statements/sql-statement-create-sequence.md b/sql-statements/sql-statement-create-sequence.md
index 5a4948afa3243..6e8f0d4c6b323 100644
--- a/sql-statements/sql-statement-create-sequence.md
+++ b/sql-statements/sql-statement-create-sequence.md
@@ -2,7 +2,7 @@
title: CREATE SEQUENCE
summary: An overview of the usage of CREATE SEQUENCE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/create-sequence/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-create-sequence/','/docs/stable/reference/sql/statements/create-sequence/']
---
# CREATE SEQUENCE
diff --git a/sql-statements/sql-statement-create-table-like.md b/sql-statements/sql-statement-create-table-like.md
index 3ed3ae5c2077e..14079d6205b63 100644
--- a/sql-statements/sql-statement-create-table-like.md
+++ b/sql-statements/sql-statement-create-table-like.md
@@ -2,7 +2,7 @@
title: CREATE TABLE LIKE | TiDB SQL Statement Reference
summary: An overview of the usage of CREATE TABLE LIKE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/create-table-like/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-create-table-like/','/docs/stable/reference/sql/statements/create-table-like/']
---
# CREATE TABLE LIKE
diff --git a/sql-statements/sql-statement-create-table.md b/sql-statements/sql-statement-create-table.md
index eb96a446464ed..83fc34f6b656e 100644
--- a/sql-statements/sql-statement-create-table.md
+++ b/sql-statements/sql-statement-create-table.md
@@ -2,7 +2,7 @@
title: CREATE TABLE | TiDB SQL Statement Reference
summary: An overview of the usage of CREATE TABLE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/create-table/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-create-table/','/docs/stable/reference/sql/statements/create-table/']
---
# CREATE TABLE
diff --git a/sql-statements/sql-statement-create-user.md b/sql-statements/sql-statement-create-user.md
index ac3d83f8ace1b..bba4ec3f0f442 100644
--- a/sql-statements/sql-statement-create-user.md
+++ b/sql-statements/sql-statement-create-user.md
@@ -2,7 +2,7 @@
title: CREATE USER | TiDB SQL Statement Reference
summary: An overview of the usage of CREATE USER for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/create-user/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-create-user/','/docs/stable/reference/sql/statements/create-user/']
---
# CREATE USER
diff --git a/sql-statements/sql-statement-create-view.md b/sql-statements/sql-statement-create-view.md
index ea3ef3452e171..2e7184a59a91b 100644
--- a/sql-statements/sql-statement-create-view.md
+++ b/sql-statements/sql-statement-create-view.md
@@ -2,7 +2,7 @@
title: CREATE VIEW | TiDB SQL Statement Reference
summary: An overview of the usage of CREATE VIEW for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/create-view/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-create-view/','/docs/stable/reference/sql/statements/create-view/']
---
# CREATE VIEW
diff --git a/sql-statements/sql-statement-deallocate.md b/sql-statements/sql-statement-deallocate.md
index 4ee747af09c5c..9f2cbf654a5c1 100644
--- a/sql-statements/sql-statement-deallocate.md
+++ b/sql-statements/sql-statement-deallocate.md
@@ -2,7 +2,7 @@
title: DEALLOCATE | TiDB SQL Statement Reference
summary: An overview of the usage of DEALLOCATE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/deallocate/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-deallocate/','/docs/stable/reference/sql/statements/deallocate/']
---
# DEALLOCATE
diff --git a/sql-statements/sql-statement-delete.md b/sql-statements/sql-statement-delete.md
index 4a0fbaa6c1f5b..46735bc8bc61b 100644
--- a/sql-statements/sql-statement-delete.md
+++ b/sql-statements/sql-statement-delete.md
@@ -2,7 +2,7 @@
title: DELETE | TiDB SQL Statement Reference
summary: An overview of the usage of DELETE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/delete/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-delete/','/docs/stable/reference/sql/statements/delete/']
---
# DELETE
diff --git a/sql-statements/sql-statement-desc.md b/sql-statements/sql-statement-desc.md
index 9ea3f65389318..9ab379a77d891 100644
--- a/sql-statements/sql-statement-desc.md
+++ b/sql-statements/sql-statement-desc.md
@@ -2,7 +2,7 @@
title: DESC | TiDB SQL Statement Reference
summary: An overview of the usage of DESC for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/desc/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-desc/','/docs/stable/reference/sql/statements/desc/']
---
# DESC
diff --git a/sql-statements/sql-statement-describe.md b/sql-statements/sql-statement-describe.md
index b521b468646f3..f65072ab6b44c 100644
--- a/sql-statements/sql-statement-describe.md
+++ b/sql-statements/sql-statement-describe.md
@@ -2,7 +2,7 @@
title: DESCRIBE | TiDB SQL Statement Reference
summary: An overview of the usage of DESCRIBE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/describe/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-describe/','/docs/stable/reference/sql/statements/describe/']
---
# DESCRIBE
diff --git a/sql-statements/sql-statement-do.md b/sql-statements/sql-statement-do.md
index e8acd9fe483f9..9662677ee71c6 100644
--- a/sql-statements/sql-statement-do.md
+++ b/sql-statements/sql-statement-do.md
@@ -2,7 +2,7 @@
title: DO | TiDB SQL Statement Reference
summary: An overview of the usage of DO for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/do/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-do/','/docs/stable/reference/sql/statements/do/']
---
# DO
diff --git a/sql-statements/sql-statement-drop-binding.md b/sql-statements/sql-statement-drop-binding.md
index 27fcf8b6e4414..43ff3273f086c 100644
--- a/sql-statements/sql-statement-drop-binding.md
+++ b/sql-statements/sql-statement-drop-binding.md
@@ -2,6 +2,7 @@
title: DROP BINDING
summary: Use of DROP BINDING in TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-binding/']
---
# DROP BINDING
diff --git a/sql-statements/sql-statement-drop-column.md b/sql-statements/sql-statement-drop-column.md
index e84c614cff67c..260f0b9d64ded 100644
--- a/sql-statements/sql-statement-drop-column.md
+++ b/sql-statements/sql-statement-drop-column.md
@@ -2,7 +2,7 @@
title: DROP COLUMN | TiDB SQL Statement Reference
summary: An overview of the usage of DROP COLUMN for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/drop-column/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-column/','/docs/stable/reference/sql/statements/drop-column/']
---
# DROP COLUMN
diff --git a/sql-statements/sql-statement-drop-database.md b/sql-statements/sql-statement-drop-database.md
index 4e924994fcce2..bfe6f0f057a2f 100644
--- a/sql-statements/sql-statement-drop-database.md
+++ b/sql-statements/sql-statement-drop-database.md
@@ -2,7 +2,7 @@
title: DROP DATABASE | TiDB SQL Statement Reference
summary: An overview of the usage of DROP DATABASE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/drop-database/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-database/','/docs/stable/reference/sql/statements/drop-database/']
---
# DROP DATABASE
diff --git a/sql-statements/sql-statement-drop-index.md b/sql-statements/sql-statement-drop-index.md
index 6494b9e47297e..e87342075b310 100644
--- a/sql-statements/sql-statement-drop-index.md
+++ b/sql-statements/sql-statement-drop-index.md
@@ -2,7 +2,7 @@
title: DROP INDEX | TiDB SQL Statement Reference
summary: An overview of the usage of DROP INDEX for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/drop-index/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-index/','/docs/stable/reference/sql/statements/drop-index/']
---
# DROP INDEX
diff --git a/sql-statements/sql-statement-drop-sequence.md b/sql-statements/sql-statement-drop-sequence.md
index 8327edf41707e..ff6ea8f5dd277 100644
--- a/sql-statements/sql-statement-drop-sequence.md
+++ b/sql-statements/sql-statement-drop-sequence.md
@@ -2,7 +2,7 @@
title: DROP SEQUENCE
summary: An overview of the usage of DROP SEQUENCE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/drop-sequence/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-sequence/','/docs/stable/reference/sql/statements/drop-sequence/']
---
# DROP SEQUENCE
diff --git a/sql-statements/sql-statement-drop-stats.md b/sql-statements/sql-statement-drop-stats.md
index 5fe1ee64fe25a..92d701ddc5e19 100644
--- a/sql-statements/sql-statement-drop-stats.md
+++ b/sql-statements/sql-statement-drop-stats.md
@@ -2,6 +2,7 @@
title: DROP STATS
summary: An overview of the usage of DROP STATS for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-stats/']
---
# DROP STATS
diff --git a/sql-statements/sql-statement-drop-table.md b/sql-statements/sql-statement-drop-table.md
index 1ddf58c4d61d7..b5a5c0217b7a0 100644
--- a/sql-statements/sql-statement-drop-table.md
+++ b/sql-statements/sql-statement-drop-table.md
@@ -2,7 +2,7 @@
title: DROP TABLE | TiDB SQL Statement Reference
summary: An overview of the usage of DROP TABLE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/drop-table/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-table/','/docs/stable/reference/sql/statements/drop-table/']
---
# DROP TABLE
diff --git a/sql-statements/sql-statement-drop-user.md b/sql-statements/sql-statement-drop-user.md
index 9757a73a7c843..8ea6679f023d4 100644
--- a/sql-statements/sql-statement-drop-user.md
+++ b/sql-statements/sql-statement-drop-user.md
@@ -2,7 +2,7 @@
title: DROP USER | TiDB SQL Statement Reference
summary: An overview of the usage of DROP USER for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/drop-user/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-user/','/docs/stable/reference/sql/statements/drop-user/']
---
# DROP USER
diff --git a/sql-statements/sql-statement-drop-view.md b/sql-statements/sql-statement-drop-view.md
index 8facaab722629..cd879133f5f45 100644
--- a/sql-statements/sql-statement-drop-view.md
+++ b/sql-statements/sql-statement-drop-view.md
@@ -2,7 +2,7 @@
title: DROP VIEW | TiDB SQL Statement Reference
summary: An overview of the usage of DROP VIEW for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/drop-view/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-drop-view/','/docs/stable/reference/sql/statements/drop-view/']
---
# DROP VIEW
diff --git a/sql-statements/sql-statement-execute.md b/sql-statements/sql-statement-execute.md
index c9f57bc273eb7..5a036a0bbfb32 100644
--- a/sql-statements/sql-statement-execute.md
+++ b/sql-statements/sql-statement-execute.md
@@ -2,7 +2,7 @@
title: EXECUTE | TiDB SQL Statement Reference
summary: An overview of the usage of EXECUTE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/execute/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-execute/','/docs/stable/reference/sql/statements/execute/']
---
# EXECUTE
diff --git a/sql-statements/sql-statement-explain-analyze.md b/sql-statements/sql-statement-explain-analyze.md
index a9b24cab0b7a8..0de806826ca93 100644
--- a/sql-statements/sql-statement-explain-analyze.md
+++ b/sql-statements/sql-statement-explain-analyze.md
@@ -2,7 +2,7 @@
title: EXPLAIN ANALYZE | TiDB SQL Statement Reference
summary: An overview of the usage of EXPLAIN ANALYZE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/explain-analyze/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-explain-analyze/','/docs/stable/reference/sql/statements/explain-analyze/']
---
# EXPLAIN ANALYZE
diff --git a/sql-statements/sql-statement-explain.md b/sql-statements/sql-statement-explain.md
index 97fb7b7057177..2178d45ca90e1 100644
--- a/sql-statements/sql-statement-explain.md
+++ b/sql-statements/sql-statement-explain.md
@@ -2,7 +2,7 @@
title: EXPLAIN | TiDB SQL Statement Reference
summary: An overview of the usage of EXPLAIN for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/explain/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-explain/','/docs/stable/reference/sql/statements/explain/']
---
# EXPLAIN
diff --git a/sql-statements/sql-statement-flashback-table.md b/sql-statements/sql-statement-flashback-table.md
index a599f158f9201..9cc2552082f67 100644
--- a/sql-statements/sql-statement-flashback-table.md
+++ b/sql-statements/sql-statement-flashback-table.md
@@ -2,7 +2,7 @@
title: FLASHBACK TABLE
summary: Learn how to recover tables using the `FLASHBACK TABLE` statement.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/flashback-table/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-flashback-table/','/docs/stable/reference/sql/statements/flashback-table/']
---
# FLASHBACK TABLE
diff --git a/sql-statements/sql-statement-flush-privileges.md b/sql-statements/sql-statement-flush-privileges.md
index f86644bda6384..6c25172a2f2a6 100644
--- a/sql-statements/sql-statement-flush-privileges.md
+++ b/sql-statements/sql-statement-flush-privileges.md
@@ -2,7 +2,7 @@
title: FLUSH PRIVILEGES | TiDB SQL Statement Reference
summary: An overview of the usage of FLUSH PRIVILEGES for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/flush-privileges/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-flush-privileges/','/docs/stable/reference/sql/statements/flush-privileges/']
---
# FLUSH PRIVILEGES
diff --git a/sql-statements/sql-statement-flush-status.md b/sql-statements/sql-statement-flush-status.md
index f646a53e78e6c..429ce33db20c3 100644
--- a/sql-statements/sql-statement-flush-status.md
+++ b/sql-statements/sql-statement-flush-status.md
@@ -2,7 +2,7 @@
title: FLUSH STATUS | TiDB SQL Statement Reference
summary: An overview of the usage of FLUSH STATUS for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/flush-status/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-flush-status/','/docs/stable/reference/sql/statements/flush-status/']
---
# FLUSH STATUS
diff --git a/sql-statements/sql-statement-flush-tables.md b/sql-statements/sql-statement-flush-tables.md
index 257b2d345d018..16d617e924fff 100644
--- a/sql-statements/sql-statement-flush-tables.md
+++ b/sql-statements/sql-statement-flush-tables.md
@@ -2,7 +2,7 @@
title: FLUSH TABLES | TiDB SQL Statement Reference
summary: An overview of the usage of FLUSH TABLES for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/flush-tables/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-flush-tables/','/docs/stable/reference/sql/statements/flush-tables/']
---
# FLUSH TABLES
diff --git a/sql-statements/sql-statement-grant-privileges.md b/sql-statements/sql-statement-grant-privileges.md
index 2d018150ecafe..aa7d4499a50ca 100644
--- a/sql-statements/sql-statement-grant-privileges.md
+++ b/sql-statements/sql-statement-grant-privileges.md
@@ -2,7 +2,7 @@
title: GRANT | TiDB SQL Statement Reference
summary: An overview of the usage of GRANT for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/grant-privileges/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-grant-privileges/','/docs/stable/reference/sql/statements/grant-privileges/']
---
# `GRANT `
diff --git a/sql-statements/sql-statement-insert.md b/sql-statements/sql-statement-insert.md
index 2ebb9adc62ea7..03d52184a63ca 100644
--- a/sql-statements/sql-statement-insert.md
+++ b/sql-statements/sql-statement-insert.md
@@ -2,7 +2,7 @@
title: INSERT | TiDB SQL Statement Reference
summary: An overview of the usage of INSERT for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/insert/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-insert/','/docs/stable/reference/sql/statements/insert/']
---
# INSERT
diff --git a/sql-statements/sql-statement-kill.md b/sql-statements/sql-statement-kill.md
index 9dd4e324edf31..8daf1e8a0f7c7 100644
--- a/sql-statements/sql-statement-kill.md
+++ b/sql-statements/sql-statement-kill.md
@@ -2,7 +2,7 @@
title: KILL [TIDB] | TiDB SQL Statement Reference
summary: An overview of the usage of KILL [TIDB] for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/kill/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-kill/','/docs/stable/reference/sql/statements/kill/']
---
# KILL [TIDB]
diff --git a/sql-statements/sql-statement-load-data.md b/sql-statements/sql-statement-load-data.md
index 2952d1b54c95b..b3320c32a84da 100644
--- a/sql-statements/sql-statement-load-data.md
+++ b/sql-statements/sql-statement-load-data.md
@@ -2,7 +2,7 @@
title: LOAD DATA | TiDB SQL Statement Reference
summary: An overview of the usage of LOAD DATA for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/load-data/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-load-data/','/docs/stable/reference/sql/statements/load-data/']
---
# LOAD DATA
diff --git a/sql-statements/sql-statement-load-stats.md b/sql-statements/sql-statement-load-stats.md
index 56fb698066726..c22a74247937b 100644
--- a/sql-statements/sql-statement-load-stats.md
+++ b/sql-statements/sql-statement-load-stats.md
@@ -2,6 +2,7 @@
title: LOAD STATS
summary: An overview of the usage of LOAD STATS for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-load-stats/']
---
# LOAD STATS
diff --git a/sql-statements/sql-statement-modify-column.md b/sql-statements/sql-statement-modify-column.md
index 70a1c1d3ce3d0..7e612ca69937c 100644
--- a/sql-statements/sql-statement-modify-column.md
+++ b/sql-statements/sql-statement-modify-column.md
@@ -2,7 +2,7 @@
title: MODIFY COLUMN | TiDB SQL Statement Reference
summary: An overview of the usage of MODIFY COLUMN for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/modify-column/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-modify-column/','/docs/stable/reference/sql/statements/modify-column/']
---
# MODIFY COLUMN
diff --git a/sql-statements/sql-statement-prepare.md b/sql-statements/sql-statement-prepare.md
index 2ff41cca83989..a264292e8b964 100644
--- a/sql-statements/sql-statement-prepare.md
+++ b/sql-statements/sql-statement-prepare.md
@@ -2,7 +2,7 @@
title: PREPARE | TiDB SQL Statement Reference
summary: An overview of the usage of PREPARE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/prepare/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-prepare/','/docs/stable/reference/sql/statements/prepare/']
---
# PREPARE
diff --git a/sql-statements/sql-statement-recover-table.md b/sql-statements/sql-statement-recover-table.md
index dfd6ae4575e3e..36ea56183d395 100644
--- a/sql-statements/sql-statement-recover-table.md
+++ b/sql-statements/sql-statement-recover-table.md
@@ -2,7 +2,7 @@
title: RECOVER TABLE
summary: An overview of the usage of RECOVER TABLE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/recover-table/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-recover-table/','/docs/stable/reference/sql/statements/recover-table/']
---
# RECOVER TABLE
diff --git a/sql-statements/sql-statement-rename-index.md b/sql-statements/sql-statement-rename-index.md
index 3df7bd5bde3f5..300b29df775c5 100644
--- a/sql-statements/sql-statement-rename-index.md
+++ b/sql-statements/sql-statement-rename-index.md
@@ -2,7 +2,7 @@
title: RENAME INDEX | TiDB SQL Statement Reference
summary: An overview of the usage of RENAME INDEX for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/rename-index/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-rename-index/','/docs/stable/reference/sql/statements/rename-index/']
---
# RENAME INDEX
diff --git a/sql-statements/sql-statement-rename-table.md b/sql-statements/sql-statement-rename-table.md
index 6f114382e9524..9e589ea8964b6 100644
--- a/sql-statements/sql-statement-rename-table.md
+++ b/sql-statements/sql-statement-rename-table.md
@@ -2,7 +2,7 @@
title: RENAME TABLE | TiDB SQL Statement Reference
summary: An overview of the usage of RENAME TABLE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/rename-table/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-rename-table/','/docs/stable/reference/sql/statements/rename-table/']
---
# RENAME TABLE
diff --git a/sql-statements/sql-statement-replace.md b/sql-statements/sql-statement-replace.md
index aa9fac82de0a6..6cc9251c86393 100644
--- a/sql-statements/sql-statement-replace.md
+++ b/sql-statements/sql-statement-replace.md
@@ -2,7 +2,7 @@
title: REPLACE | TiDB SQL Statement Reference
summary: An overview of the usage of REPLACE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/replace/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-replace/','/docs/stable/reference/sql/statements/replace/']
---
# REPLACE
diff --git a/sql-statements/sql-statement-restore.md b/sql-statements/sql-statement-restore.md
index d47aabb676dfd..132d08b215024 100644
--- a/sql-statements/sql-statement-restore.md
+++ b/sql-statements/sql-statement-restore.md
@@ -2,6 +2,7 @@
title: RESTORE | TiDB SQL Statement Reference
summary: An overview of the usage of RESTORE for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-restore/']
---
# RESTORE
diff --git a/sql-statements/sql-statement-revoke-privileges.md b/sql-statements/sql-statement-revoke-privileges.md
index 154efd10c017b..1d371133cae48 100644
--- a/sql-statements/sql-statement-revoke-privileges.md
+++ b/sql-statements/sql-statement-revoke-privileges.md
@@ -2,7 +2,7 @@
title: REVOKE | TiDB SQL Statement Reference
summary: An overview of the usage of REVOKE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/revoke-privileges/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-revoke-privileges/','/docs/stable/reference/sql/statements/revoke-privileges/']
---
# `REVOKE `
diff --git a/sql-statements/sql-statement-rollback.md b/sql-statements/sql-statement-rollback.md
index 20c165c61a10b..c3955810dd046 100644
--- a/sql-statements/sql-statement-rollback.md
+++ b/sql-statements/sql-statement-rollback.md
@@ -2,7 +2,7 @@
title: ROLLBACK | TiDB SQL Statement Reference
summary: An overview of the usage of ROLLBACK for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/rollback/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-rollback/','/docs/stable/reference/sql/statements/rollback/']
---
# ROLLBACK
diff --git a/sql-statements/sql-statement-select.md b/sql-statements/sql-statement-select.md
index cb871aa313cb6..95d82e0101a15 100644
--- a/sql-statements/sql-statement-select.md
+++ b/sql-statements/sql-statement-select.md
@@ -2,7 +2,7 @@
title: SELECT | TiDB SQL Statement Reference
summary: An overview of the usage of SELECT for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/select/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-select/','/docs/stable/reference/sql/statements/select/']
---
# SELECT
diff --git a/sql-statements/sql-statement-set-names.md b/sql-statements/sql-statement-set-names.md
index 9c9dfd18e5cd3..fff22cf00615f 100644
--- a/sql-statements/sql-statement-set-names.md
+++ b/sql-statements/sql-statement-set-names.md
@@ -2,7 +2,7 @@
title: SET [NAMES|CHARACTER SET] | TiDB SQL Statement Reference
summary: An overview of the usage of SET [NAMES|CHARACTER SET] for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/set-names/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-set-names/','/docs/stable/reference/sql/statements/set-names/']
---
# SET [NAMES|CHARACTER SET]
diff --git a/sql-statements/sql-statement-set-password.md b/sql-statements/sql-statement-set-password.md
index 3fc7bed5fc49d..0e7bb65305b35 100644
--- a/sql-statements/sql-statement-set-password.md
+++ b/sql-statements/sql-statement-set-password.md
@@ -2,7 +2,7 @@
title: SET PASSWORD | TiDB SQL Statement Reference
summary: An overview of the usage of SET PASSWORD for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/set-password/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-set-password/','/docs/stable/reference/sql/statements/set-password/']
---
# SET PASSWORD
diff --git a/sql-statements/sql-statement-set-role.md b/sql-statements/sql-statement-set-role.md
index c3ab6f79fb44a..f6b40042aaa59 100644
--- a/sql-statements/sql-statement-set-role.md
+++ b/sql-statements/sql-statement-set-role.md
@@ -2,6 +2,7 @@
title: SET ROLE | TiDB SQL Statement Reference
summary: An overview of the usage of SET ROLE for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-set-role/']
---
# SET ROLE
diff --git a/sql-statements/sql-statement-set-transaction.md b/sql-statements/sql-statement-set-transaction.md
index 0b92e070147d2..b60212b527150 100644
--- a/sql-statements/sql-statement-set-transaction.md
+++ b/sql-statements/sql-statement-set-transaction.md
@@ -2,7 +2,7 @@
title: SET TRANSACTION | TiDB SQL Statement Reference
summary: An overview of the usage of SET TRANSACTION for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/set-transaction/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-set-transaction/','/docs/stable/reference/sql/statements/set-transaction/']
---
# SET TRANSACTION
diff --git a/sql-statements/sql-statement-set-variable.md b/sql-statements/sql-statement-set-variable.md
index 6ff96a5043f0c..f2ebf610d7aef 100644
--- a/sql-statements/sql-statement-set-variable.md
+++ b/sql-statements/sql-statement-set-variable.md
@@ -2,7 +2,7 @@
title: SET [GLOBAL|SESSION] | TiDB SQL Statement Reference
summary: An overview of the usage of SET [GLOBAL|SESSION] for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/set-variable/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-set-variable/','/docs/stable/reference/sql/statements/set-variable/']
---
# `SET [GLOBAL|SESSION] `
diff --git a/sql-statements/sql-statement-show-analyze-status.md b/sql-statements/sql-statement-show-analyze-status.md
index 3bcad59f18338..3e74ab35958c0 100644
--- a/sql-statements/sql-statement-show-analyze-status.md
+++ b/sql-statements/sql-statement-show-analyze-status.md
@@ -2,6 +2,7 @@
title: SHOW ANALYZE STATUS
summary: An overview of the usage of SHOW ANALYZE STATUS for the TiDB database。
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-analyze-status/']
---
# SHOW ANALYZE STATUS
diff --git a/sql-statements/sql-statement-show-backups.md b/sql-statements/sql-statement-show-backups.md
index 9ae112ee44335..4cebb9e3a45a7 100644
--- a/sql-statements/sql-statement-show-backups.md
+++ b/sql-statements/sql-statement-show-backups.md
@@ -2,6 +2,7 @@
title: SHOW [BACKUPS|RESTORES] | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW [BACKUPS|RESTORES] for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-backups/']
---
# SHOW [BACKUPS|RESTORES]
diff --git a/sql-statements/sql-statement-show-bindings.md b/sql-statements/sql-statement-show-bindings.md
index bc784eb93be76..05363e6e17185 100644
--- a/sql-statements/sql-statement-show-bindings.md
+++ b/sql-statements/sql-statement-show-bindings.md
@@ -2,6 +2,7 @@
title: SHOW BINDINGS
summary: Use of SHOW BINDINGS binding in TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-bindings/']
---
# SHOW BINDINGS
diff --git a/sql-statements/sql-statement-show-builtins.md b/sql-statements/sql-statement-show-builtins.md
index d486269f54c4e..26c874b9fbe8c 100644
--- a/sql-statements/sql-statement-show-builtins.md
+++ b/sql-statements/sql-statement-show-builtins.md
@@ -2,6 +2,7 @@
title: SHOW BUILTINS
summary: The usage of SHOW BUILTINS in TiDB.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-builtins/']
---
# SHOW BUILTINS
diff --git a/sql-statements/sql-statement-show-character-set.md b/sql-statements/sql-statement-show-character-set.md
index 5e2516f22e6b5..d0df26068ae81 100644
--- a/sql-statements/sql-statement-show-character-set.md
+++ b/sql-statements/sql-statement-show-character-set.md
@@ -2,7 +2,7 @@
title: SHOW CHARACTER SET | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW CHARACTER SET for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-character-set/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-character-set/','/docs/stable/reference/sql/statements/show-character-set/']
---
# SHOW CHARACTER SET
diff --git a/sql-statements/sql-statement-show-collation.md b/sql-statements/sql-statement-show-collation.md
index c30ff9b955144..ec55fb375676a 100644
--- a/sql-statements/sql-statement-show-collation.md
+++ b/sql-statements/sql-statement-show-collation.md
@@ -2,7 +2,7 @@
title: SHOW COLLATION | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW COLLATION for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-collation/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-collation/','/docs/stable/reference/sql/statements/show-collation/']
---
# SHOW COLLATION
diff --git a/sql-statements/sql-statement-show-columns-from.md b/sql-statements/sql-statement-show-columns-from.md
index 771f805bece1d..a17f21c69f9cc 100644
--- a/sql-statements/sql-statement-show-columns-from.md
+++ b/sql-statements/sql-statement-show-columns-from.md
@@ -2,7 +2,7 @@
title: SHOW [FULL] COLUMNS FROM | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW [FULL] COLUMNS FROM for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-columns-from/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-columns-from/','/docs/stable/reference/sql/statements/show-columns-from/']
---
# SHOW [FULL] COLUMNS FROM
diff --git a/sql-statements/sql-statement-show-config.md b/sql-statements/sql-statement-show-config.md
index 601a930693bc3..c60a56771a4c8 100644
--- a/sql-statements/sql-statement-show-config.md
+++ b/sql-statements/sql-statement-show-config.md
@@ -2,6 +2,7 @@
title: SHOW CONFIG
summary: Overview of the use of SHOW CONFIG in the TiDB database
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-config/']
---
# SHOW CONFIG
diff --git a/sql-statements/sql-statement-show-create-sequence.md b/sql-statements/sql-statement-show-create-sequence.md
index 53983293d2b20..624d195ed94f8 100644
--- a/sql-statements/sql-statement-show-create-sequence.md
+++ b/sql-statements/sql-statement-show-create-sequence.md
@@ -2,7 +2,7 @@
title: SHOW CREATE SEQUENCE
summary: An overview of the usage of SHOW CREATE SEQUENCE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-create-sequence/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-create-sequence/','/docs/stable/reference/sql/statements/show-create-sequence/']
---
# SHOW CREATE SEQUENCE
diff --git a/sql-statements/sql-statement-show-create-table.md b/sql-statements/sql-statement-show-create-table.md
index 091c161750ca2..25e615038bc5d 100644
--- a/sql-statements/sql-statement-show-create-table.md
+++ b/sql-statements/sql-statement-show-create-table.md
@@ -2,7 +2,7 @@
title: SHOW CREATE TABLE | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW CREATE TABLE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-create-table/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-create-table/','/docs/stable/reference/sql/statements/show-create-table/']
---
# SHOW CREATE TABLE
diff --git a/sql-statements/sql-statement-show-create-user.md b/sql-statements/sql-statement-show-create-user.md
index 35d3875b5e5e2..e409de76bbf79 100644
--- a/sql-statements/sql-statement-show-create-user.md
+++ b/sql-statements/sql-statement-show-create-user.md
@@ -2,7 +2,7 @@
title: SHOW CREATE USER | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW CREATE USER for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-create-user/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-create-user/','/docs/stable/reference/sql/statements/show-create-user/']
---
# SHOW CREATE USER
diff --git a/sql-statements/sql-statement-show-databases.md b/sql-statements/sql-statement-show-databases.md
index 7c8212d6a5b45..5f365099822d2 100644
--- a/sql-statements/sql-statement-show-databases.md
+++ b/sql-statements/sql-statement-show-databases.md
@@ -2,7 +2,7 @@
title: SHOW DATABASES | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW DATABASES for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-databases/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-databases/','/docs/stable/reference/sql/statements/show-databases/']
---
# SHOW DATABASES
diff --git a/sql-statements/sql-statement-show-drainer-status.md b/sql-statements/sql-statement-show-drainer-status.md
index 4119cf2ea6e9c..e380ca41810d3 100644
--- a/sql-statements/sql-statement-show-drainer-status.md
+++ b/sql-statements/sql-statement-show-drainer-status.md
@@ -2,6 +2,7 @@
title: SHOW DRAINER STATUS
summary: An overview of the usage of SHOW DRAINER STATUS for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-drainer-status/']
---
# SHOW DRAINER STATUS
diff --git a/sql-statements/sql-statement-show-engines.md b/sql-statements/sql-statement-show-engines.md
index 92356ac9357cc..ce4bce7f1b213 100644
--- a/sql-statements/sql-statement-show-engines.md
+++ b/sql-statements/sql-statement-show-engines.md
@@ -2,7 +2,7 @@
title: SHOW ENGINES | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW ENGINES for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-engines/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-engines/','/docs/stable/reference/sql/statements/show-engines/']
---
# SHOW ENGINES
diff --git a/sql-statements/sql-statement-show-errors.md b/sql-statements/sql-statement-show-errors.md
index 8a647894d698e..3463fe2e30309 100644
--- a/sql-statements/sql-statement-show-errors.md
+++ b/sql-statements/sql-statement-show-errors.md
@@ -2,7 +2,7 @@
title: SHOW ERRORS | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW ERRORS for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-errors/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-errors/','/docs/stable/reference/sql/statements/show-errors/']
---
# SHOW ERRORS
diff --git a/sql-statements/sql-statement-show-fields-from.md b/sql-statements/sql-statement-show-fields-from.md
index 8f4979fec3dfc..df88e437706f5 100644
--- a/sql-statements/sql-statement-show-fields-from.md
+++ b/sql-statements/sql-statement-show-fields-from.md
@@ -2,7 +2,7 @@
title: SHOW [FULL] FIELDS FROM | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW [FULL] FIELDS FROM for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-fields-from/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-fields-from/','/docs/stable/reference/sql/statements/show-fields-from/']
---
# SHOW [FULL] FIELDS FROM
diff --git a/sql-statements/sql-statement-show-grants.md b/sql-statements/sql-statement-show-grants.md
index 430a657701955..23f68dd4fc710 100644
--- a/sql-statements/sql-statement-show-grants.md
+++ b/sql-statements/sql-statement-show-grants.md
@@ -2,7 +2,7 @@
title: SHOW GRANTS | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW GRANTS for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-grants/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-grants/','/docs/stable/reference/sql/statements/show-grants/']
---
# SHOW GRANTS
diff --git a/sql-statements/sql-statement-show-histograms.md b/sql-statements/sql-statement-show-histograms.md
index c4c24004c7a18..d3b08ed876410 100644
--- a/sql-statements/sql-statement-show-histograms.md
+++ b/sql-statements/sql-statement-show-histograms.md
@@ -2,6 +2,7 @@
title: SHOW STATS_HISTOGRAMS
summary: An overview of the usage of SHOW HISTOGRAMS for TiDB database。
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-histograms/']
---
# SHOW STATS_HISTOGRAMS
diff --git a/sql-statements/sql-statement-show-index.md b/sql-statements/sql-statement-show-index.md
index f931594faa9b8..f6b7811ddfcd1 100644
--- a/sql-statements/sql-statement-show-index.md
+++ b/sql-statements/sql-statement-show-index.md
@@ -2,7 +2,7 @@
title: SHOW INDEX [FROM|IN] | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW INDEX [FROM|IN] for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-index/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-index/','/docs/stable/reference/sql/statements/show-index/']
---
# SHOW INDEX [FROM|IN]
diff --git a/sql-statements/sql-statement-show-indexes.md b/sql-statements/sql-statement-show-indexes.md
index eb096c2c734a0..2d5da6d9aba38 100644
--- a/sql-statements/sql-statement-show-indexes.md
+++ b/sql-statements/sql-statement-show-indexes.md
@@ -2,7 +2,7 @@
title: SHOW INDEXES [FROM|IN] | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW INDEXES [FROM|IN] for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-indexes/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-indexes/','/docs/stable/reference/sql/statements/show-indexes/']
---
# SHOW INDEXES [FROM|IN]
diff --git a/sql-statements/sql-statement-show-keys.md b/sql-statements/sql-statement-show-keys.md
index 6820a1056c1c9..880b4ee431296 100644
--- a/sql-statements/sql-statement-show-keys.md
+++ b/sql-statements/sql-statement-show-keys.md
@@ -2,7 +2,7 @@
title: SHOW KEYS [FROM|IN] | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW KEYS [FROM|IN] for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-keys/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-keys/','/docs/stable/reference/sql/statements/show-keys/']
---
# SHOW KEYS [FROM|IN]
diff --git a/sql-statements/sql-statement-show-master-status.md b/sql-statements/sql-statement-show-master-status.md
index 8b3af9bdc5dbe..5b7eceb575a45 100644
--- a/sql-statements/sql-statement-show-master-status.md
+++ b/sql-statements/sql-statement-show-master-status.md
@@ -2,6 +2,7 @@
title: SHOW MASTER STATUS
summary: An overview of the usage of SHOW MASTER STATUS for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-master-status/']
---
# SHOW MASTER STATUS
diff --git a/sql-statements/sql-statement-show-plugins.md b/sql-statements/sql-statement-show-plugins.md
index 565f83606cc07..38302876cbc12 100644
--- a/sql-statements/sql-statement-show-plugins.md
+++ b/sql-statements/sql-statement-show-plugins.md
@@ -2,6 +2,7 @@
title: SHOW PLUGINS
summary: An overview of the usage of SHOW PLUGINS for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-plugins/']
---
# SHOW PLUGINS
diff --git a/sql-statements/sql-statement-show-privileges.md b/sql-statements/sql-statement-show-privileges.md
index 0c25eebebaff7..12204b05b56f6 100644
--- a/sql-statements/sql-statement-show-privileges.md
+++ b/sql-statements/sql-statement-show-privileges.md
@@ -2,7 +2,7 @@
title: SHOW PRIVILEGES | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW PRIVILEGES for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-privileges/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-privileges/','/docs/stable/reference/sql/statements/show-privileges/']
---
# SHOW PRIVILEGES
diff --git a/sql-statements/sql-statement-show-processlist.md b/sql-statements/sql-statement-show-processlist.md
index 2e6b1a42ffdcd..357d6787b9c6e 100644
--- a/sql-statements/sql-statement-show-processlist.md
+++ b/sql-statements/sql-statement-show-processlist.md
@@ -2,7 +2,7 @@
title: SHOW [FULL] PROCESSLIST | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW [FULL] PROCESSLIST for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-processlist/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-processlist/','/docs/stable/reference/sql/statements/show-processlist/']
---
# SHOW [FULL] PROCESSLIST
diff --git a/sql-statements/sql-statement-show-profiles.md b/sql-statements/sql-statement-show-profiles.md
index f55626e323ce6..f6476f5d83be7 100644
--- a/sql-statements/sql-statement-show-profiles.md
+++ b/sql-statements/sql-statement-show-profiles.md
@@ -2,6 +2,7 @@
title: SHOW PROFILES
summary: An overview of the usage of SHOW PROFILES for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-profiles/']
---
# SHOW PROFILES
diff --git a/sql-statements/sql-statement-show-pump-status.md b/sql-statements/sql-statement-show-pump-status.md
index baba74260b844..4430cd720d480 100644
--- a/sql-statements/sql-statement-show-pump-status.md
+++ b/sql-statements/sql-statement-show-pump-status.md
@@ -2,6 +2,7 @@
title: SHOW PUMP STATUS
summary: An overview of the usage of SHOW PUMP STATUS for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-pump-status/']
---
# SHOW PUMP STATUS
diff --git a/sql-statements/sql-statement-show-schemas.md b/sql-statements/sql-statement-show-schemas.md
index cda17d926aae3..bcd2aa5412fe0 100644
--- a/sql-statements/sql-statement-show-schemas.md
+++ b/sql-statements/sql-statement-show-schemas.md
@@ -2,7 +2,7 @@
title: SHOW SCHEMAS | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW SCHEMAS for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-schemas/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-schemas/','/docs/stable/reference/sql/statements/show-schemas/']
---
# SHOW SCHEMAS
diff --git a/sql-statements/sql-statement-show-stats-meta.md b/sql-statements/sql-statement-show-stats-meta.md
index e8b8613c6d79e..7abd1cd2bf176 100644
--- a/sql-statements/sql-statement-show-stats-meta.md
+++ b/sql-statements/sql-statement-show-stats-meta.md
@@ -2,6 +2,7 @@
title: SHOW STATS_META
summary: An overview of the usage of SHOW STATS_META for TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-stats-meta/']
---
# SHOW STATS_META
diff --git a/sql-statements/sql-statement-show-status.md b/sql-statements/sql-statement-show-status.md
index d7c9a332ba9e5..1451fe6dbdbb7 100644
--- a/sql-statements/sql-statement-show-status.md
+++ b/sql-statements/sql-statement-show-status.md
@@ -2,7 +2,7 @@
title: SHOW [GLOBAL|SESSION] STATUS | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW [GLOBAL|SESSION] STATUS for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-status/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-status/','/docs/stable/reference/sql/statements/show-status/']
---
# SHOW [GLOBAL|SESSION] STATUS
diff --git a/sql-statements/sql-statement-show-table-next-rowid.md b/sql-statements/sql-statement-show-table-next-rowid.md
index 50047e584637e..7d124c2f68204 100644
--- a/sql-statements/sql-statement-show-table-next-rowid.md
+++ b/sql-statements/sql-statement-show-table-next-rowid.md
@@ -2,6 +2,7 @@
title: SHOW TABLE NEXT_ROW_ID
summary: Learn the usage of `SHOW TABLE NEXT_ROW_ID` in TiDB.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-table-next-rowid/']
---
# SHOW TABLE NEXT_ROW_ID
diff --git a/sql-statements/sql-statement-show-table-regions.md b/sql-statements/sql-statement-show-table-regions.md
index ccbb5182ca9bb..8b4e233cd0dd0 100644
--- a/sql-statements/sql-statement-show-table-regions.md
+++ b/sql-statements/sql-statement-show-table-regions.md
@@ -2,7 +2,7 @@
title: SHOW TABLE REGIONS
summary: Learn how to use SHOW TABLE REGIONS in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-table-regions/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-table-regions/','/docs/stable/reference/sql/statements/show-table-regions/']
---
# SHOW TABLE REGIONS
diff --git a/sql-statements/sql-statement-show-table-status.md b/sql-statements/sql-statement-show-table-status.md
index 0c6529172e397..2fc36e4cb8ad4 100644
--- a/sql-statements/sql-statement-show-table-status.md
+++ b/sql-statements/sql-statement-show-table-status.md
@@ -2,7 +2,7 @@
title: SHOW TABLE STATUS | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW TABLE STATUS for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-table-status/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-table-status/','/docs/stable/reference/sql/statements/show-table-status/']
---
# SHOW TABLE STATUS
diff --git a/sql-statements/sql-statement-show-tables.md b/sql-statements/sql-statement-show-tables.md
index a5e2d93b438f6..cc66a71d62794 100644
--- a/sql-statements/sql-statement-show-tables.md
+++ b/sql-statements/sql-statement-show-tables.md
@@ -2,7 +2,7 @@
title: SHOW [FULL] TABLES | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW [FULL] TABLES for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-tables/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-tables/','/docs/stable/reference/sql/statements/show-tables/']
---
# SHOW [FULL] TABLES
diff --git a/sql-statements/sql-statement-show-variables.md b/sql-statements/sql-statement-show-variables.md
index 49b0995e2d4ea..095712776da1e 100644
--- a/sql-statements/sql-statement-show-variables.md
+++ b/sql-statements/sql-statement-show-variables.md
@@ -2,7 +2,7 @@
title: SHOW [GLOBAL|SESSION] VARIABLES | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW [GLOBAL|SESSION] VARIABLES for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-variables/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-variables/','/docs/stable/reference/sql/statements/show-variables/']
---
# SHOW [GLOBAL|SESSION] VARIABLES
diff --git a/sql-statements/sql-statement-show-warnings.md b/sql-statements/sql-statement-show-warnings.md
index 663c6ba5bda0a..57db86ff4ccd4 100644
--- a/sql-statements/sql-statement-show-warnings.md
+++ b/sql-statements/sql-statement-show-warnings.md
@@ -2,7 +2,7 @@
title: SHOW WARNINGS | TiDB SQL Statement Reference
summary: An overview of the usage of SHOW WARNINGS for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/show-warnings/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-show-warnings/','/docs/stable/reference/sql/statements/show-warnings/']
---
# SHOW WARNINGS
diff --git a/sql-statements/sql-statement-shutdown.md b/sql-statements/sql-statement-shutdown.md
index e6743b9810aef..49adfa0ed52f5 100644
--- a/sql-statements/sql-statement-shutdown.md
+++ b/sql-statements/sql-statement-shutdown.md
@@ -2,6 +2,7 @@
title: SHUTDOWN
summary: An overview of the usage of SHUTDOWN for the TiDB database.
category: reference
+aliases: ['/docs/v4.0/sql-statements/sql-statement-shutdown/']
---
# SHUTDOWN
diff --git a/sql-statements/sql-statement-split-region.md b/sql-statements/sql-statement-split-region.md
index 0bcbc7f943476..4e52e5d019663 100644
--- a/sql-statements/sql-statement-split-region.md
+++ b/sql-statements/sql-statement-split-region.md
@@ -2,7 +2,7 @@
title: Split Region
summary: An overview of the usage of Split Region for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/split-region/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-split-region/','/docs/stable/reference/sql/statements/split-region/']
---
# Split Region
diff --git a/sql-statements/sql-statement-start-transaction.md b/sql-statements/sql-statement-start-transaction.md
index 6a8720a43bdcb..22d9f3ff233ef 100644
--- a/sql-statements/sql-statement-start-transaction.md
+++ b/sql-statements/sql-statement-start-transaction.md
@@ -2,7 +2,7 @@
title: START TRANSACTION | TiDB SQL Statement Reference
summary: An overview of the usage of START TRANSACTION for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/start-transaction/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-start-transaction/','/docs/stable/reference/sql/statements/start-transaction/']
---
# START TRANSACTION
diff --git a/sql-statements/sql-statement-trace.md b/sql-statements/sql-statement-trace.md
index 9a5b90ac9a08f..a480f6ac08b40 100644
--- a/sql-statements/sql-statement-trace.md
+++ b/sql-statements/sql-statement-trace.md
@@ -2,7 +2,7 @@
title: TRACE | TiDB SQL Statement Reference
summary: An overview of the usage of TRACE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/trace/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-trace/','/docs/stable/reference/sql/statements/trace/']
---
# TRACE
diff --git a/sql-statements/sql-statement-truncate.md b/sql-statements/sql-statement-truncate.md
index 8882becf5fba6..f9ca197587489 100644
--- a/sql-statements/sql-statement-truncate.md
+++ b/sql-statements/sql-statement-truncate.md
@@ -2,7 +2,7 @@
title: TRUNCATE | TiDB SQL Statement Reference
summary: An overview of the usage of TRUNCATE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/truncate/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-truncate/','/docs/stable/reference/sql/statements/truncate/']
---
# TRUNCATE
diff --git a/sql-statements/sql-statement-update.md b/sql-statements/sql-statement-update.md
index 0a2876235977a..ef645af963875 100644
--- a/sql-statements/sql-statement-update.md
+++ b/sql-statements/sql-statement-update.md
@@ -2,7 +2,7 @@
title: UPDATE | TiDB SQL Statement Reference
summary: An overview of the usage of UPDATE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/update/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-update/','/docs/stable/reference/sql/statements/update/']
---
# UPDATE
diff --git a/sql-statements/sql-statement-use.md b/sql-statements/sql-statement-use.md
index 7e63654440933..c3cf33036b546 100644
--- a/sql-statements/sql-statement-use.md
+++ b/sql-statements/sql-statement-use.md
@@ -2,7 +2,7 @@
title: USE | TiDB SQL Statement Reference
summary: An overview of the usage of USE for the TiDB database.
category: reference
-aliases: ['/docs/stable/reference/sql/statements/use/']
+aliases: ['/docs/v4.0/sql-statements/sql-statement-use/','/docs/stable/reference/sql/statements/use/']
---
# USE
diff --git a/statement-summary-tables.md b/statement-summary-tables.md
index f8170c294beb0..90ae502d7dc77 100644
--- a/statement-summary-tables.md
+++ b/statement-summary-tables.md
@@ -2,7 +2,7 @@
title: Statement Summary Tables
summary: Learn about Statement Summary Table in TiDB.
category: reference
-aliases: ['/docs/stable/reference/performance/statement-summary/']
+aliases: ['/docs/v4.0/statement-summary-tables/','/docs/stable/reference/performance/statement-summary/']
---
# Statement Summary Tables
diff --git a/statistics.md b/statistics.md
index 8d4db069a8023..39dd4a2be9405 100644
--- a/statistics.md
+++ b/statistics.md
@@ -2,7 +2,7 @@
title: Introduction to Statistics
summary: Learn how the statistics collect table-level and column-level information.
category: reference
-aliases: ['/docs/stable/reference/performance/statistics/']
+aliases: ['/docs/v4.0/statistics/','/docs/stable/reference/performance/statistics/']
---
# Introduction to Statistics
diff --git a/support.md b/support.md
index e39ea305bd219..48658769575b8 100644
--- a/support.md
+++ b/support.md
@@ -2,7 +2,7 @@
title: Support Resources
summary: Find support resources for your TiDB installation.
category: support
-aliases: ['/docs/stable/support-resources/']
+aliases: ['/docs/v4.0/support/','/docs/stable/support-resources/']
---
# Support Resources
diff --git a/sync-diff-inspector/route-diff.md b/sync-diff-inspector/route-diff.md
index c550266adf9ac..1b98fca6f84c0 100644
--- a/sync-diff-inspector/route-diff.md
+++ b/sync-diff-inspector/route-diff.md
@@ -2,7 +2,7 @@
title: Data Check for Tables with Different Schema or Table Names
summary: Learn the data check for different database names or table names.
category: tools
-aliases: ['/docs/stable/reference/tools/sync-diff-inspector/route-diff/']
+aliases: ['/docs/v4.0/sync-diff-inspector/route-diff/','/docs/stable/reference/tools/sync-diff-inspector/route-diff/']
---
# Data Check for Tables with Different Schema or Table Names
diff --git a/sync-diff-inspector/shard-diff.md b/sync-diff-inspector/shard-diff.md
index 6cf1e1e388d69..4353ea7608b83 100644
--- a/sync-diff-inspector/shard-diff.md
+++ b/sync-diff-inspector/shard-diff.md
@@ -2,7 +2,7 @@
title: Data Check in the Sharding Scenario
summary: Learn the data check in the sharding scenario.
category: tools
-aliases: ['/docs/stable/reference/tools/sync-diff-inspector/shard-diff/']
+aliases: ['/docs/v4.0/sync-diff-inspector/shard-diff/','/docs/stable/reference/tools/sync-diff-inspector/shard-diff/']
---
# Data Check in the Sharding Scenario
diff --git a/sync-diff-inspector/sync-diff-inspector-overview.md b/sync-diff-inspector/sync-diff-inspector-overview.md
index 9e78efc54f643..ee721853838e8 100644
--- a/sync-diff-inspector/sync-diff-inspector-overview.md
+++ b/sync-diff-inspector/sync-diff-inspector-overview.md
@@ -2,7 +2,7 @@
title: sync-diff-inspector User Guide
summary: Use sync-diff-inspector to compare data and repair inconsistent data.
category: tools
-aliases: ['/docs/stable/reference/tools/sync-diff-inspector/overview/']
+aliases: ['/docs/v4.0/sync-diff-inspector/sync-diff-inspector-overview/','/docs/stable/reference/tools/sync-diff-inspector/overview/']
---
# sync-diff-inspector User Guide
diff --git a/sync-diff-inspector/upstream-downstream-diff.md b/sync-diff-inspector/upstream-downstream-diff.md
index 5643499d42fe5..57b39ac34e119 100644
--- a/sync-diff-inspector/upstream-downstream-diff.md
+++ b/sync-diff-inspector/upstream-downstream-diff.md
@@ -2,7 +2,7 @@
title: Data Check for TiDB Upstream and Downstream Clusters
summary: Learn how to check data for TiDB upstream and downstream clusters.
category: tools
-aliases: ['/docs/stable/reference/tools/sync-diff-inspector/tidb-diff/']
+aliases: ['/docs/v4.0/sync-diff-inspector/upstream-downstream-diff/','/docs/stable/reference/tools/sync-diff-inspector/tidb-diff/']
---
# Data Check for TiDB Upstream and Downstream Clusters
diff --git a/syncer-overview.md b/syncer-overview.md
index 02f2451e89e67..d2a311ad6a67f 100644
--- a/syncer-overview.md
+++ b/syncer-overview.md
@@ -2,7 +2,7 @@
title: Syncer User Guide
summary: Use Syncer to import data incrementally to TiDB.
category: reference
-aliases: ['/docs/stable/reference/tools/syncer/']
+aliases: ['/docs/v4.0/syncer-overview/','/docs/stable/reference/tools/syncer/']
---
# Syncer User Guide
diff --git a/system-tables/system-table-cluster-config.md b/system-tables/system-table-cluster-config.md
index 9c13ea72ff3fb..6681d5a66dd00 100644
--- a/system-tables/system-table-cluster-config.md
+++ b/system-tables/system-table-cluster-config.md
@@ -2,7 +2,7 @@
title: CLUSTER_CONFIG
summary: Learn the `CLUSTER_CONFIG` cluster configuration system table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/cluster-config/']
+aliases: ['/docs/v4.0/system-tables/system-table-cluster-config/','/docs/stable/reference/system-databases/cluster-config/']
---
# CLUSTER_CONFIG
diff --git a/system-tables/system-table-cluster-hardware.md b/system-tables/system-table-cluster-hardware.md
index 24984ce389211..64892c83ce3bd 100644
--- a/system-tables/system-table-cluster-hardware.md
+++ b/system-tables/system-table-cluster-hardware.md
@@ -2,7 +2,7 @@
title: CLUSTER_HARDWARE
summary: Learn the `CLUSTER_HARDWARE` cluster hardware system table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/cluster-hardware/']
+aliases: ['/docs/v4.0/system-tables/system-table-cluster-hardware/','/docs/stable/reference/system-databases/cluster-hardware/']
---
# CLUSTER_HARDWARE
diff --git a/system-tables/system-table-cluster-info.md b/system-tables/system-table-cluster-info.md
index f02fec4c83b72..b425a81c1002e 100644
--- a/system-tables/system-table-cluster-info.md
+++ b/system-tables/system-table-cluster-info.md
@@ -2,7 +2,7 @@
title: CLUSTER_INFO
summary: Learn the `CLUSTER_INFO` cluster topology information table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/cluster-info/']
+aliases: ['/docs/v4.0/system-tables/system-table-cluster-info/','/docs/stable/reference/system-databases/cluster-info/']
---
# CLUSTER_INFO
diff --git a/system-tables/system-table-cluster-load.md b/system-tables/system-table-cluster-load.md
index bfebd26d38308..fc9820d07fea0 100644
--- a/system-tables/system-table-cluster-load.md
+++ b/system-tables/system-table-cluster-load.md
@@ -2,7 +2,7 @@
title: CLUSTER_LOAD
summary: Learn the `CLUSTER_LOAD` cluster load table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/cluster-load/']
+aliases: ['/docs/v4.0/system-tables/system-table-cluster-load/','/docs/stable/reference/system-databases/cluster-load/']
---
# CLUSTER_LOAD
diff --git a/system-tables/system-table-cluster-log.md b/system-tables/system-table-cluster-log.md
index 6d49b758e8b7b..5a8a722c14549 100644
--- a/system-tables/system-table-cluster-log.md
+++ b/system-tables/system-table-cluster-log.md
@@ -2,7 +2,7 @@
title: CLUSTER_LOG
summary: Learn the `CLUSTER_LOG` cluster log table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/cluster-log/']
+aliases: ['/docs/v4.0/system-tables/system-table-cluster-log/','/docs/stable/reference/system-databases/cluster-log/']
---
# CLUSTER_LOG
diff --git a/system-tables/system-table-cluster-systeminfo.md b/system-tables/system-table-cluster-systeminfo.md
index 17fcf9597cc7d..b9947e5e939fe 100644
--- a/system-tables/system-table-cluster-systeminfo.md
+++ b/system-tables/system-table-cluster-systeminfo.md
@@ -2,7 +2,7 @@
title: CLUSTER_SYSTEMINFO
summary: Learn the `CLUSTER_SYSTEMINFO` kernel parameter table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/cluster-systeminfo/']
+aliases: ['/docs/v4.0/system-tables/system-table-cluster-systeminfo/','/docs/stable/reference/system-databases/cluster-systeminfo/']
---
# CLUSTER_SYSTEMINFO
diff --git a/system-tables/system-table-information-schema.md b/system-tables/system-table-information-schema.md
index 1e5754d440abb..79038aa910fd3 100644
--- a/system-tables/system-table-information-schema.md
+++ b/system-tables/system-table-information-schema.md
@@ -2,7 +2,7 @@
title: Information Schema
summary: Learn how to use Information Schema in TiDB.
category: reference
-aliases: ['/docs/stable/reference/system-databases/information-schema/']
+aliases: ['/docs/v4.0/system-tables/system-table-information-schema/','/docs/stable/reference/system-databases/information-schema/']
---
# Information Schema
diff --git a/system-tables/system-table-inspection-result.md b/system-tables/system-table-inspection-result.md
index 5e93bd03f75c7..c4cc3c39e1306 100644
--- a/system-tables/system-table-inspection-result.md
+++ b/system-tables/system-table-inspection-result.md
@@ -2,7 +2,7 @@
title: INSPECTION_RESULT
summary: Learn the `INSPECTION_RESULT` diagnostic result table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/inspection-result/']
+aliases: ['/docs/v4.0/system-tables/system-table-inspection-result/','/docs/stable/reference/system-databases/inspection-result/']
---
# INSPECTION_RESULT
diff --git a/system-tables/system-table-inspection-summary.md b/system-tables/system-table-inspection-summary.md
index 28e6754e46d29..3e50535b27817 100644
--- a/system-tables/system-table-inspection-summary.md
+++ b/system-tables/system-table-inspection-summary.md
@@ -2,7 +2,7 @@
title: INSPECTION_SUMMARY
summary: Learn the `INSPECTION_SUMMARY` inspection summary table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/inspection-summary/']
+aliases: ['/docs/v4.0/system-tables/system-table-inspection-summary/','/docs/stable/reference/system-databases/inspection-summary/']
---
# INSPECTION_SUMMARY
diff --git a/system-tables/system-table-metrics-schema.md b/system-tables/system-table-metrics-schema.md
index 7ad846e3ac37e..2a74e3532902c 100644
--- a/system-tables/system-table-metrics-schema.md
+++ b/system-tables/system-table-metrics-schema.md
@@ -2,7 +2,7 @@
title: Metrics Schema
summary: Learn the `METRICS_SCHEMA` schema.
category: reference
-aliases: ['/docs/stable/reference/system-databases/metrics-schema/']
+aliases: ['/docs/v4.0/system-tables/system-table-metrics-schema/','/docs/stable/reference/system-databases/metrics-schema/']
---
# Metrics Schema
diff --git a/system-tables/system-table-metrics-summary.md b/system-tables/system-table-metrics-summary.md
index c49b616be23b8..8b292187eee48 100644
--- a/system-tables/system-table-metrics-summary.md
+++ b/system-tables/system-table-metrics-summary.md
@@ -2,7 +2,7 @@
title: METRICS_SUMMARY
summary: Learn the `METRICS_SUMMARY` system table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/metrics-summary/']
+aliases: ['/docs/v4.0/system-tables/system-table-metrics-summary/','/docs/stable/reference/system-databases/metrics-summary/']
---
# METRICS_SUMMARY
diff --git a/system-tables/system-table-metrics-tables.md b/system-tables/system-table-metrics-tables.md
index e4db70228910c..cecd97662020a 100644
--- a/system-tables/system-table-metrics-tables.md
+++ b/system-tables/system-table-metrics-tables.md
@@ -2,7 +2,7 @@
title: METRICS_TABLES
summary: Learn the `METRICS_TABLES` system table.
category: reference
-aliases: ['/docs/stable/reference/system-databases/metrics-tables/']
+aliases: ['/docs/v4.0/system-tables/system-table-metrics-tables/','/docs/stable/reference/system-databases/metrics-tables/']
---
# METRICS_TABLES
diff --git a/system-tables/system-table-overview.md b/system-tables/system-table-overview.md
index 1a3bbfaaae61e..e285eee5b836f 100644
--- a/system-tables/system-table-overview.md
+++ b/system-tables/system-table-overview.md
@@ -2,7 +2,7 @@
title: TiDB System Tables
summary: Learn the TiDB system tables.
category: reference
-aliases: ['/docs/stable/reference/system-databases/mysql/']
+aliases: ['/docs/v4.0/system-tables/system-table-overview/','/docs/stable/reference/system-databases/mysql/']
---
# TiDB System Tables
diff --git a/system-tables/system-table-sql-diagnosis.md b/system-tables/system-table-sql-diagnosis.md
index 5f684cf3d6ab3..17b7cfd2714e6 100644
--- a/system-tables/system-table-sql-diagnosis.md
+++ b/system-tables/system-table-sql-diagnosis.md
@@ -2,7 +2,7 @@
title: SQL Diagnosis
summary: Understand SQL diagnosis in TiDB.
category: reference
-aliases: ['/docs/stable/reference/system-databases/sql-diagnosis/']
+aliases: ['/docs/v4.0/system-tables/system-table-sql-diagnosis/','/docs/stable/reference/system-databases/sql-diagnosis/']
---
# SQL Diagnosis
diff --git a/system-tables/system-table-sql-diagnostics.md b/system-tables/system-table-sql-diagnostics.md
index 8fdec711fb5ce..6829b131ff542 100644
--- a/system-tables/system-table-sql-diagnostics.md
+++ b/system-tables/system-table-sql-diagnostics.md
@@ -2,7 +2,7 @@
title: SQL Diagnostics
summary: Understand SQL diagnostics in TiDB.
category: reference
-aliases: ['/docs/stable/reference/system-databases/sql-diagnosis/','/docs/stable/system-tables/system-table-sql-diagnosis/']
+aliases: ['/docs/v4.0/system-tables/system-table-sql-diagnostics/','/docs/stable/reference/system-databases/sql-diagnosis/','/docs/stable/system-tables/system-table-sql-diagnosis/']
---
# SQL Diagnostics
diff --git a/system-variables.md b/system-variables.md
index 380c33ff99540..a9db459e38380 100644
--- a/system-variables.md
+++ b/system-variables.md
@@ -2,7 +2,7 @@
title: The System Variables
summary: Learn how to use the system variables in TiDB.
category: reference
-aliases: ['/docs/stable/reference/configuration/tidb-server/mysql-variables/']
+aliases: ['/docs/v4.0/system-variables/','/docs/stable/reference/configuration/tidb-server/mysql-variables/']
---
# The System Variables
diff --git a/technical-writing-project-ideas.md b/technical-writing-project-ideas.md
index c50abdeeb1f6d..9800500dc5ed6 100644
--- a/technical-writing-project-ideas.md
+++ b/technical-writing-project-ideas.md
@@ -1,6 +1,7 @@
---
title: Technical Writing Project Ideas
summary: Learn about the project ideas of TiDB documentation.
+aliases: ['/docs/v4.0/technical-writing-project-ideas/']
---
# Technical Writing Project Ideas
diff --git a/test-deployment-from-binary-tarball.md b/test-deployment-from-binary-tarball.md
index cffe5f8b7f60b..35d525e561dcf 100644
--- a/test-deployment-from-binary-tarball.md
+++ b/test-deployment-from-binary-tarball.md
@@ -2,7 +2,7 @@
title: Testing Deployment from Binary Tarball
summary: Use the binary to deploy a TiDB cluster.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/from-tarball/testing-environment/']
+aliases: ['/docs/v4.0/test-deployment-from-binary-tarball/','/docs/stable/how-to/deploy/from-tarball/testing-environment/']
---
# Testing Deployment from Binary Tarball
diff --git a/test-deployment-using-docker.md b/test-deployment-using-docker.md
index 5470dc3814c99..bcc22d99841d0 100644
--- a/test-deployment-using-docker.md
+++ b/test-deployment-using-docker.md
@@ -2,7 +2,7 @@
title: Deploy TiDB Using Docker
summary: Use Docker to manually deploy a multi-node TiDB cluster on multiple machines.
category: how-to
-aliases: ['/docs/stable/how-to/deploy/orchestrated/docker/']
+aliases: ['/docs/v4.0/test-deployment-using-docker/','/docs/stable/how-to/deploy/orchestrated/docker/']
---
# Deploy TiDB Using Docker
diff --git a/ticdc-deployment-topology.md b/ticdc-deployment-topology.md
index e8ea31d28bcab..5b3bb31e0fdef 100644
--- a/ticdc-deployment-topology.md
+++ b/ticdc-deployment-topology.md
@@ -2,6 +2,7 @@
title: TiCDC Deployment Topology
summary: Learn the deployment topology of TiCDC based on the minimal TiDB topology.
category: how-to
+aliases: ['/docs/v4.0/ticdc-deployment-topology/']
---
# TiCDC Deployment Topology
diff --git a/ticdc/manage-ticdc.md b/ticdc/manage-ticdc.md
index 169d9ec20a9b7..d64769e5fa121 100644
--- a/ticdc/manage-ticdc.md
+++ b/ticdc/manage-ticdc.md
@@ -2,7 +2,7 @@
title: Manage TiCDC Cluster and Replication Tasks
summary: Learn how to manage a TiCDC cluster and replication tasks.
category: reference
-aliases: ['/docs/stable/reference/tools/ticdc/manage/']
+aliases: ['/docs/v4.0/ticdc/manage-ticdc/','/docs/stable/reference/tools/ticdc/manage/']
---
# Manage TiCDC Cluster and Replication Tasks
diff --git a/ticdc/ticdc-open-protocol.md b/ticdc/ticdc-open-protocol.md
index 9637820ec11c1..0f903b601ae5f 100644
--- a/ticdc/ticdc-open-protocol.md
+++ b/ticdc/ticdc-open-protocol.md
@@ -1,7 +1,7 @@
---
title: TiCDC Open Protocol
category: reference
-aliases: ['/docs/stable/reference/tools/ticdc/open-protocol/']
+aliases: ['/docs/v4.0/ticdc/ticdc-open-protocol/','/docs/stable/reference/tools/ticdc/open-protocol/']
---
# TiCDC Open Protocol
diff --git a/ticdc/ticdc-overview.md b/ticdc/ticdc-overview.md
index 72eddd60de58e..b008e251f0f31 100644
--- a/ticdc/ticdc-overview.md
+++ b/ticdc/ticdc-overview.md
@@ -2,7 +2,7 @@
title: TiCDC Overview
summary: Learn what TiCDC is, what features TiCDC provides, etc.
category: reference
-aliases: ['/docs/stable/reference/tools/ticdc/overview/']
+aliases: ['/docs/v4.0/ticdc/ticdc-overview/','/docs/stable/reference/tools/ticdc/overview/']
---
# TiCDC Overview
diff --git a/ticdc/troubleshoot-ticdc.md b/ticdc/troubleshoot-ticdc.md
index 995075c931038..c49c10b7bab66 100644
--- a/ticdc/troubleshoot-ticdc.md
+++ b/ticdc/troubleshoot-ticdc.md
@@ -2,6 +2,7 @@
title: Troubleshoot TiCDC
summary: Learn how to troubleshoot issues you might encounter when you use TiCDC.
category: reference
+aliases: ['/docs/v4.0/ticdc/troubleshoot-ticdc/']
---
# Troubleshoot TiCDC
diff --git a/tidb-binlog-deployment-topology.md b/tidb-binlog-deployment-topology.md
index d04fee935e36b..19278680e757b 100644
--- a/tidb-binlog-deployment-topology.md
+++ b/tidb-binlog-deployment-topology.md
@@ -2,6 +2,7 @@
title: TiDB Binlog Deployment Topology
summary: Learn the deployment topology of TiDB Binlog based on the minimal TiDB topology.
category: how-to
+aliases: ['/docs/v4.0/tidb-binlog-deployment-topology/']
---
# TiDB Binlog Deployment Topology
diff --git a/tidb-binlog/bidirectional-replication-between-tidb-clusters.md b/tidb-binlog/bidirectional-replication-between-tidb-clusters.md
index d8c2c482bc6a9..93be7d3256999 100644
--- a/tidb-binlog/bidirectional-replication-between-tidb-clusters.md
+++ b/tidb-binlog/bidirectional-replication-between-tidb-clusters.md
@@ -2,7 +2,7 @@
title: Bidirectional Replication Between TiDB Clusters
summary: Learn how to perform the bidirectional replication between TiDB clusters.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/bidirectional-replication/']
+aliases: ['/docs/v4.0/tidb-binlog/bidirectional-replication-between-tidb-clusters/','/docs/stable/reference/tidb-binlog/bidirectional-replication/']
---
# Bidirectional Replication Between TiDB Clusters
diff --git a/tidb-binlog/binlog-control.md b/tidb-binlog/binlog-control.md
index 2c95ed6f07c25..02154eb14dff1 100644
--- a/tidb-binlog/binlog-control.md
+++ b/tidb-binlog/binlog-control.md
@@ -2,6 +2,7 @@
title: binlogctl
summary: Learns how to use `binlogctl`.
category: reference
+aliases: ['/docs/v4.0/tidb-binlog/binlog-control/']
---
# binlogctl
diff --git a/tidb-binlog/binlog-slave-client.md b/tidb-binlog/binlog-slave-client.md
index 88ed066e21d3f..d31330d9fa072 100644
--- a/tidb-binlog/binlog-slave-client.md
+++ b/tidb-binlog/binlog-slave-client.md
@@ -2,7 +2,7 @@
title: Binlog Slave Client User Guide
summary: Use Binlog Slave Client to consume TiDB slave binlog data from Kafka and output the data in a specific format.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/binlog-slave-client/']
+aliases: ['/docs/v4.0/tidb-binlog/binlog-slave-client/','/docs/stable/reference/tidb-binlog/binlog-slave-client/']
---
# Binlog Slave Client User Guide
diff --git a/tidb-binlog/deploy-tidb-binlog.md b/tidb-binlog/deploy-tidb-binlog.md
index 10e7ac8f49918..54ae039e6bddf 100644
--- a/tidb-binlog/deploy-tidb-binlog.md
+++ b/tidb-binlog/deploy-tidb-binlog.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Cluster Deployment
summary: Learn how to deploy TiDB Binlog cluster.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/deploy/']
+aliases: ['/docs/v4.0/tidb-binlog/deploy-tidb-binlog/','/docs/stable/reference/tidb-binlog/deploy/']
---
# TiDB Binlog Cluster Deployment
diff --git a/tidb-binlog/handle-tidb-binlog-errors.md b/tidb-binlog/handle-tidb-binlog-errors.md
index 484540e895028..e3d91f0c4a531 100644
--- a/tidb-binlog/handle-tidb-binlog-errors.md
+++ b/tidb-binlog/handle-tidb-binlog-errors.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Error Handling
summary: Learn how to handle TiDB Binlog errors.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/troubleshoot/error-handling/']
+aliases: ['/docs/v4.0/tidb-binlog/handle-tidb-binlog-errors/','/docs/stable/reference/tidb-binlog/troubleshoot/error-handling/']
---
# TiDB Binlog Error Handling
diff --git a/tidb-binlog/maintain-tidb-binlog-cluster.md b/tidb-binlog/maintain-tidb-binlog-cluster.md
index d9cb61ed5b792..0a7cae1e5e03e 100644
--- a/tidb-binlog/maintain-tidb-binlog-cluster.md
+++ b/tidb-binlog/maintain-tidb-binlog-cluster.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Cluster Operations
summary: Learn how to operate the cluster version of TiDB Binlog.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/maintain/']
+aliases: ['/docs/v4.0/tidb-binlog/maintain-tidb-binlog-cluster/','/docs/stable/reference/tidb-binlog/maintain/']
---
# TiDB Binlog Cluster Operations
diff --git a/tidb-binlog/monitor-tidb-binlog-cluster.md b/tidb-binlog/monitor-tidb-binlog-cluster.md
index ecde2f4bc88fb..f1e533160bf7e 100644
--- a/tidb-binlog/monitor-tidb-binlog-cluster.md
+++ b/tidb-binlog/monitor-tidb-binlog-cluster.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Monitoring
summary: Learn how to monitor the cluster version of TiDB Binlog.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/monitor/']
+aliases: ['/docs/v4.0/tidb-binlog/monitor-tidb-binlog-cluster/','/docs/stable/reference/tidb-binlog/monitor/']
---
# TiDB Binlog Monitoring
diff --git a/tidb-binlog/tidb-binlog-configuration-file.md b/tidb-binlog/tidb-binlog-configuration-file.md
index f992972a43c1d..295d8f3b4a0f4 100644
--- a/tidb-binlog/tidb-binlog-configuration-file.md
+++ b/tidb-binlog/tidb-binlog-configuration-file.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Configuration File
summary: Learn the configuration items of TiDB Binlog.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/config/']
+aliases: ['/docs/v4.0/tidb-binlog/tidb-binlog-configuration-file/','/docs/stable/reference/tidb-binlog/config/']
---
# TiDB Binlog Configuration File
diff --git a/tidb-binlog/tidb-binlog-faq.md b/tidb-binlog/tidb-binlog-faq.md
index f578faa4261e6..5a33ae0933fdf 100644
--- a/tidb-binlog/tidb-binlog-faq.md
+++ b/tidb-binlog/tidb-binlog-faq.md
@@ -2,7 +2,7 @@
title: TiDB Binlog FAQ
summary: Learn about the frequently asked questions (FAQs) and answers about TiDB Binlog.
category: faq
-aliases: ['/docs/stable/reference/tidb-binlog/faq/']
+aliases: ['/docs/v4.0/tidb-binlog/tidb-binlog-faq/','/docs/stable/reference/tidb-binlog/faq/']
---
# TiDB Binlog FAQ
diff --git a/tidb-binlog/tidb-binlog-glossary.md b/tidb-binlog/tidb-binlog-glossary.md
index dce920f60a8c8..8128c534f8a65 100644
--- a/tidb-binlog/tidb-binlog-glossary.md
+++ b/tidb-binlog/tidb-binlog-glossary.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Glossary
summary: Learn the terms used in TiDB Binlog.
category: glossary
-aliases: ['/docs/stable/reference/tidb-binlog/glossary/']
+aliases: ['/docs/v4.0/tidb-binlog/tidb-binlog-glossary/','/docs/stable/reference/tidb-binlog/glossary/']
---
# TiDB Binlog Glossary
diff --git a/tidb-binlog/tidb-binlog-overview.md b/tidb-binlog/tidb-binlog-overview.md
index 0f0db17cc1236..d2a05495c036e 100644
--- a/tidb-binlog/tidb-binlog-overview.md
+++ b/tidb-binlog/tidb-binlog-overview.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Overview
summary: Learn overview of the cluster version of TiDB Binlog.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/overview/']
+aliases: ['/docs/v4.0/tidb-binlog/tidb-binlog-overview/','/docs/stable/reference/tidb-binlog/overview/']
---
# TiDB Binlog Cluster Overview
diff --git a/tidb-binlog/tidb-binlog-relay-log.md b/tidb-binlog/tidb-binlog-relay-log.md
index 9dab2a50872e2..e4d5901997355 100644
--- a/tidb-binlog/tidb-binlog-relay-log.md
+++ b/tidb-binlog/tidb-binlog-relay-log.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Relay Log
summary: Learn how to use relay log to maintain data consistency in extreme cases.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/relay-log/']
+aliases: ['/docs/v4.0/tidb-binlog/tidb-binlog-relay-log/','/docs/stable/reference/tidb-binlog/relay-log/']
---
# TiDB Binlog Relay Log
diff --git a/tidb-binlog/tidb-binlog-reparo.md b/tidb-binlog/tidb-binlog-reparo.md
index 34b01da3ac48d..bb71c3f0dc22e 100644
--- a/tidb-binlog/tidb-binlog-reparo.md
+++ b/tidb-binlog/tidb-binlog-reparo.md
@@ -2,7 +2,7 @@
title: Reparo User Guide
summary: Learn to use Reparo.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/reparo/']
+aliases: ['/docs/v4.0/tidb-binlog/tidb-binlog-reparo/','/docs/stable/reference/tidb-binlog/reparo/']
---
# Reparo User Guide
diff --git a/tidb-binlog/troubleshoot-tidb-binlog.md b/tidb-binlog/troubleshoot-tidb-binlog.md
index d3c67f2fe6f0b..19cfd58719b58 100644
--- a/tidb-binlog/troubleshoot-tidb-binlog.md
+++ b/tidb-binlog/troubleshoot-tidb-binlog.md
@@ -2,7 +2,7 @@
title: TiDB Binlog Troubleshooting
summary: Learn the troubleshooting process of TiDB Binlog.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/troubleshoot/binlog/']
+aliases: ['/docs/v4.0/tidb-binlog/troubleshoot-tidb-binlog/','/docs/stable/reference/tidb-binlog/troubleshoot/binlog/']
---
# TiDB Binlog Troubleshooting
diff --git a/tidb-binlog/upgrade-tidb-binlog.md b/tidb-binlog/upgrade-tidb-binlog.md
index 90343372f9c19..bc608e234308c 100644
--- a/tidb-binlog/upgrade-tidb-binlog.md
+++ b/tidb-binlog/upgrade-tidb-binlog.md
@@ -2,7 +2,7 @@
title: Upgrade TiDB Binlog
summary: Learn how to upgrade TiDB Binlog to the latest cluster version.
category: reference
-aliases: ['/docs/stable/reference/tidb-binlog/upgrade/']
+aliases: ['/docs/v4.0/tidb-binlog/upgrade-tidb-binlog/','/docs/stable/reference/tidb-binlog/upgrade/']
---
# Upgrade TiDB Binlog
diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md
index 316c725f9159e..9e7c2db8b91c1 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -2,7 +2,7 @@
title: TiDB Configuration File
summary: Learn the TiDB configuration file options that are not involved in command line options.
category: deployment
-aliases: ['/docs/stable/reference/configuration/tidb-server/configuration-file/']
+aliases: ['/docs/v4.0/tidb-configuration-file/','/docs/stable/reference/configuration/tidb-server/configuration-file/']
---
diff --git a/tidb-control.md b/tidb-control.md
index 1e624240adedd..c2eeed971958a 100644
--- a/tidb-control.md
+++ b/tidb-control.md
@@ -2,7 +2,7 @@
title: TiDB Control User Guide
summary: Use TiDB Control to obtain TiDB status information for debugging.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-control/']
+aliases: ['/docs/v4.0/tidb-control/','/docs/stable/reference/tools/tidb-control/']
---
# TiDB Control User Guide
diff --git a/tidb-lightning/deploy-tidb-lightning.md b/tidb-lightning/deploy-tidb-lightning.md
index 548bacc87a5f8..0382d3bb14e8e 100644
--- a/tidb-lightning/deploy-tidb-lightning.md
+++ b/tidb-lightning/deploy-tidb-lightning.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Deployment
summary: Deploy TiDB Lightning to quickly import large amounts of new data.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/deployment/']
+aliases: ['/docs/v4.0/tidb-lightning/deploy-tidb-lightning/','/docs/stable/reference/tools/tidb-lightning/deployment/']
---
# TiDB Lightning Deployment
diff --git a/tidb-lightning/migrate-from-csv-using-tidb-lightning.md b/tidb-lightning/migrate-from-csv-using-tidb-lightning.md
index b2e91968ed557..9819f2569b6c4 100644
--- a/tidb-lightning/migrate-from-csv-using-tidb-lightning.md
+++ b/tidb-lightning/migrate-from-csv-using-tidb-lightning.md
@@ -2,7 +2,7 @@
title: TiDB Lightning CSV Support
summary: Learn how to import CSV files via TiDB Lightning.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/csv/']
+aliases: ['/docs/v4.0/tidb-lightning/migrate-from-csv-using-tidb-lightning/','/docs/stable/reference/tools/tidb-lightning/csv/']
---
# TiDB Lightning CSV Support
diff --git a/tidb-lightning/monitor-tidb-lightning.md b/tidb-lightning/monitor-tidb-lightning.md
index ec0ff2861c4dd..73be8c0ce98f2 100644
--- a/tidb-lightning/monitor-tidb-lightning.md
+++ b/tidb-lightning/monitor-tidb-lightning.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Monitoring
summary: Learn about the monitor configuration and monitoring metrics of TiDB Lightning.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/monitor/']
+aliases: ['/docs/v4.0/tidb-lightning/monitor-tidb-lightning/','/docs/stable/reference/tools/tidb-lightning/monitor/']
---
# TiDB Lightning Monitoring
diff --git a/tidb-lightning/tidb-lightning-checkpoints.md b/tidb-lightning/tidb-lightning-checkpoints.md
index da7fa972ec3a4..8004dca3987a1 100644
--- a/tidb-lightning/tidb-lightning-checkpoints.md
+++ b/tidb-lightning/tidb-lightning-checkpoints.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Checkpoints
summary: Use checkpoints to avoid redoing the previously completed tasks before the crash.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/checkpoints/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-checkpoints/','/docs/stable/reference/tools/tidb-lightning/checkpoints/']
---
# TiDB Lightning Checkpoints
diff --git a/tidb-lightning/tidb-lightning-configuration.md b/tidb-lightning/tidb-lightning-configuration.md
index 5871ba9b560d6..115035582fa83 100644
--- a/tidb-lightning/tidb-lightning-configuration.md
+++ b/tidb-lightning/tidb-lightning-configuration.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Configuration
summary: Learn about the CLI usage and sample configuration in TiDB Lightning.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/config/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-configuration/','/docs/stable/reference/tools/tidb-lightning/config/']
---
# TiDB Lightning Configuration
diff --git a/tidb-lightning/tidb-lightning-faq.md b/tidb-lightning/tidb-lightning-faq.md
index 61dc50c550af4..5864ae5f8a01a 100644
--- a/tidb-lightning/tidb-lightning-faq.md
+++ b/tidb-lightning/tidb-lightning-faq.md
@@ -2,7 +2,7 @@
title: TiDB Lightning FAQs
summary: Learn about the frequently asked questions (FAQs) and answers about TiDB Lightning.
category: faq
-aliases: ['/docs/stable/faq/tidb-lightning/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-faq/','/docs/stable/faq/tidb-lightning/']
---
# TiDB Lightning FAQs
diff --git a/tidb-lightning/tidb-lightning-glossary.md b/tidb-lightning/tidb-lightning-glossary.md
index ccb1b02806b8d..83ec9287070ef 100644
--- a/tidb-lightning/tidb-lightning-glossary.md
+++ b/tidb-lightning/tidb-lightning-glossary.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Glossary
summary: List of special terms used in TiDB Lightning.
category: glossary
-aliases: ['/docs/stable/reference/tools/tidb-lightning/glossary/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-glossary/','/docs/stable/reference/tools/tidb-lightning/glossary/']
---
# TiDB Lightning Glossary
diff --git a/tidb-lightning/tidb-lightning-misuse-handling.md b/tidb-lightning/tidb-lightning-misuse-handling.md
index 0a1157b84a176..a712d61cc4a1e 100644
--- a/tidb-lightning/tidb-lightning-misuse-handling.md
+++ b/tidb-lightning/tidb-lightning-misuse-handling.md
@@ -1,7 +1,7 @@
---
title: Common Misuses of TiDB Lightning
category: reference
-aliases: ['/docs/stable/reference/tools/error-case-handling/lightning-misuse-handling/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-misuse-handling/','/docs/stable/reference/tools/error-case-handling/lightning-misuse-handling/']
---
# Common Misuses of TiDB Lightning
diff --git a/tidb-lightning/tidb-lightning-overview.md b/tidb-lightning/tidb-lightning-overview.md
index bd789c0759368..7a60eea1c91f4 100644
--- a/tidb-lightning/tidb-lightning-overview.md
+++ b/tidb-lightning/tidb-lightning-overview.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Overview
summary: Learn about Lightning and the whole architecture.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/overview/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-overview/','/docs/stable/reference/tools/tidb-lightning/overview/']
---
# TiDB Lightning Overview
diff --git a/tidb-lightning/tidb-lightning-table-filter.md b/tidb-lightning/tidb-lightning-table-filter.md
index 9ea812643aa48..8b2d90679dbd1 100644
--- a/tidb-lightning/tidb-lightning-table-filter.md
+++ b/tidb-lightning/tidb-lightning-table-filter.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Table Filter
summary: Use black and white lists to filter out tables, ignoring them during import.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/table-filter/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-table-filter/','/docs/stable/reference/tools/tidb-lightning/table-filter/']
---
# TiDB Lightning Table Filter
diff --git a/tidb-lightning/tidb-lightning-tidb-backend.md b/tidb-lightning/tidb-lightning-tidb-backend.md
index 191be43800b48..5b347ce5eddaa 100644
--- a/tidb-lightning/tidb-lightning-tidb-backend.md
+++ b/tidb-lightning/tidb-lightning-tidb-backend.md
@@ -2,7 +2,7 @@
title: TiDB Lightning TiDB-backend
summary: Choose how to write data into the TiDB cluster.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/tidb-backend/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-tidb-backend/','/docs/stable/reference/tools/tidb-lightning/tidb-backend/']
---
# TiDB Lightning TiDB-backend
diff --git a/tidb-lightning/tidb-lightning-web-interface.md b/tidb-lightning/tidb-lightning-web-interface.md
index c8f9b79676c2c..49c6809dbf82e 100644
--- a/tidb-lightning/tidb-lightning-web-interface.md
+++ b/tidb-lightning/tidb-lightning-web-interface.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Web Interface
summary: Control TiDB Lightning through the web interface.
category: reference
-aliases: ['/docs/stable/reference/tools/tidb-lightning/web/']
+aliases: ['/docs/v4.0/tidb-lightning/tidb-lightning-web-interface/','/docs/stable/reference/tools/tidb-lightning/web/']
---
# TiDB Lightning Web Interface
diff --git a/tidb-limitations.md b/tidb-limitations.md
index fd8e52b81552e..efe8e91ea7613 100644
--- a/tidb-limitations.md
+++ b/tidb-limitations.md
@@ -2,6 +2,7 @@
title: TiDB Limitations
summary: Learn the usage limitations of TiDB.
category: introduction
+aliases: ['/docs/v4.0/tidb-limitations/']
---
# TiDB Limitations
diff --git a/tidb-monitoring-api.md b/tidb-monitoring-api.md
index a66d9ff9decb7..70cb440630b3a 100644
--- a/tidb-monitoring-api.md
+++ b/tidb-monitoring-api.md
@@ -2,6 +2,7 @@
title: TiDB Monitoring API
summary: Learn the API of TiDB monitoring services.
category: how-to
+aliases: ['/docs/v4.0/tidb-monitoring-api/']
---
# TiDB Monitoring API
diff --git a/tidb-monitoring-framework.md b/tidb-monitoring-framework.md
index 7bd02adffbc01..3ffef964e7016 100644
--- a/tidb-monitoring-framework.md
+++ b/tidb-monitoring-framework.md
@@ -2,7 +2,7 @@
title: TiDB Monitoring Framework Overview
summary: Use Prometheus and Grafana to build the TiDB monitoring framework.
category: how-to
-aliases: ['/docs/stable/how-to/monitor/overview/']
+aliases: ['/docs/v4.0/tidb-monitoring-framework/','/docs/stable/how-to/monitor/overview/']
---
# TiDB Monitoring Framework Overview
diff --git a/tidb-specific-system-variables.md b/tidb-specific-system-variables.md
index 978d66ac9337f..fd4335527849d 100644
--- a/tidb-specific-system-variables.md
+++ b/tidb-specific-system-variables.md
@@ -2,7 +2,7 @@
title: TiDB Specific System Variables
summary: Use system variables specific to TiDB to optimize performance.
category: reference
-aliases: ['/docs/stable/reference/configuration/tidb-server/tidb-specific-variables/']
+aliases: ['/docs/v4.0/tidb-specific-system-variables/','/docs/stable/reference/configuration/tidb-server/tidb-specific-variables/']
---
# TiDB Specific System Variables
diff --git a/tidb-troubleshooting-map.md b/tidb-troubleshooting-map.md
index de2de8a3e5455..2608332ce9918 100644
--- a/tidb-troubleshooting-map.md
+++ b/tidb-troubleshooting-map.md
@@ -2,7 +2,7 @@
title: TiDB Troubleshooting Map
summary: Learn how to troubleshoot common errors in TiDB.
category: how-to
-aliases: ['/docs/stable/how-to/troubleshoot/diagnose-map/']
+aliases: ['/docs/v4.0/tidb-troubleshooting-map/','/docs/stable/how-to/troubleshoot/diagnose-map/']
---
# TiDB Troubleshooting Map
diff --git a/tiflash-deployment-topology.md b/tiflash-deployment-topology.md
index a5e57257fefc4..902e86198bb37 100644
--- a/tiflash-deployment-topology.md
+++ b/tiflash-deployment-topology.md
@@ -2,6 +2,7 @@
title: TiFlash Deployment Topology
summary: Learn the deployment topology of TiFlash based on the minimal TiDB topology.
category: how-to
+aliases: ['/docs/v4.0/tiflash-deployment-topology/']
---
# TiFlash Deployment Topology
diff --git a/tiflash/maintain-tiflash.md b/tiflash/maintain-tiflash.md
index ea1eabd97da6e..057829fda1941 100644
--- a/tiflash/maintain-tiflash.md
+++ b/tiflash/maintain-tiflash.md
@@ -2,7 +2,7 @@
title: Maintain a TiFlash Cluster
summary: Learn common operations when you maintain a TiFlash cluster.
category: reference
-aliases: ['/docs/stable/reference/tiflash/maintain/']
+aliases: ['/docs/v4.0/tiflash/maintain-tiflash/','/docs/stable/reference/tiflash/maintain/']
---
# Maintain a TiFlash Cluster
diff --git a/tiflash/monitor-tiflash.md b/tiflash/monitor-tiflash.md
index 65a235a99a9e6..15ca62ba231f9 100644
--- a/tiflash/monitor-tiflash.md
+++ b/tiflash/monitor-tiflash.md
@@ -2,7 +2,7 @@
title: Monitor the TiFlash Cluster
summary: Learn the monitoring items of TiFlash.
category: reference
-aliases: ['/docs/stable/reference/tiflash/monitor/']
+aliases: ['/docs/v4.0/tiflash/monitor-tiflash/','/docs/stable/reference/tiflash/monitor/']
---
# Monitor the TiFlash Cluster
diff --git a/tiflash/tiflash-alert-rules.md b/tiflash/tiflash-alert-rules.md
index 2999f7664feee..521fc2e08db00 100644
--- a/tiflash/tiflash-alert-rules.md
+++ b/tiflash/tiflash-alert-rules.md
@@ -2,7 +2,7 @@
title: TiFlash Alert Rules
summary: Learn the alert rules of the TiFlash cluster.
category: reference
-aliases: ['/docs/stable/reference/tiflash/alert-rules/']
+aliases: ['/docs/v4.0/tiflash/tiflash-alert-rules/','/docs/stable/reference/tiflash/alert-rules/']
---
# TiFlash Alert Rules
diff --git a/tiflash/tiflash-command-line-flags.md b/tiflash/tiflash-command-line-flags.md
index 93d51d3e2ac60..64aefc2717388 100644
--- a/tiflash/tiflash-command-line-flags.md
+++ b/tiflash/tiflash-command-line-flags.md
@@ -2,6 +2,7 @@
title: TiFlash Command-line Flags
summary: Learn the command-line startup flags of TiFlash.
category: reference
+aliases: ['/docs/v4.0/tiflash/tiflash-command-line-flags/']
---
# TiFlash Command-line Flags
diff --git a/tiflash/tiflash-configuration.md b/tiflash/tiflash-configuration.md
index f4f0576170968..725243c8ad141 100644
--- a/tiflash/tiflash-configuration.md
+++ b/tiflash/tiflash-configuration.md
@@ -2,7 +2,7 @@
title: Configure TiFlash
summary: Learn how to configure TiFlash.
category: reference
-aliases: ['/docs/stable/reference/tiflash/configuration/']
+aliases: ['/docs/v4.0/tiflash/tiflash-configuration/','/docs/stable/reference/tiflash/configuration/']
---
# Configure TiFlash
diff --git a/tiflash/tiflash-faq.md b/tiflash/tiflash-faq.md
index dde31edc66981..506279810e5a4 100644
--- a/tiflash/tiflash-faq.md
+++ b/tiflash/tiflash-faq.md
@@ -2,7 +2,7 @@
title: TiFlash FAQ
summary: Learn the frequently asked questions (FAQs) and answers about TiFlash.
category: faq
-aliases: ['/docs/stable/reference/tiflash/faq/']
+aliases: ['/docs/v4.0/tiflash/tiflash-faq/','/docs/stable/reference/tiflash/faq/']
---
# TiFlash FAQ
diff --git a/tiflash/tiflash-overview.md b/tiflash/tiflash-overview.md
index 656cf478a5141..34319327e5bef 100644
--- a/tiflash/tiflash-overview.md
+++ b/tiflash/tiflash-overview.md
@@ -2,7 +2,7 @@
title: TiFlash Overview
summary: Learn the architecture and key features of TiFlash.
category: reference
-aliases: ['/docs/stable/reference/tiflash/overview/']
+aliases: ['/docs/v4.0/tiflash/tiflash-overview/','/docs/stable/reference/tiflash/overview/']
---
# TiFlash Overview
diff --git a/tiflash/troubleshoot-tiflash.md b/tiflash/troubleshoot-tiflash.md
index 46e8fc5212907..f0c3abe5b38ca 100644
--- a/tiflash/troubleshoot-tiflash.md
+++ b/tiflash/troubleshoot-tiflash.md
@@ -2,6 +2,7 @@
title: Troubleshoot a TiFlash Cluster
summary: Learn common operations when you troubleshoot a TiFlash cluster.
category: reference
+aliases: ['/docs/v4.0/tiflash/troubleshoot-tiflash/']
---
# Troubleshoot a TiFlash Cluster
diff --git a/tiflash/tune-tiflash-performance.md b/tiflash/tune-tiflash-performance.md
index f21e62124e369..dbd8a44685117 100644
--- a/tiflash/tune-tiflash-performance.md
+++ b/tiflash/tune-tiflash-performance.md
@@ -2,7 +2,7 @@
title: Tune TiFlash Performance
summary: Learn how to tune the performance of TiFlash.
category: reference
-aliases: ['/docs/stable/reference/tiflash/tune-performance/']
+aliases: ['/docs/v4.0/tiflash/tune-tiflash-performance/','/docs/stable/reference/tiflash/tune-performance/']
---
# Tune TiFlash Performance
diff --git a/tiflash/use-tiflash.md b/tiflash/use-tiflash.md
index c605006e5a20f..925763f967e21 100644
--- a/tiflash/use-tiflash.md
+++ b/tiflash/use-tiflash.md
@@ -1,7 +1,7 @@
---
title: Use TiFlash
category: reference
-aliases: ['/docs/stable/reference/tiflash/use-tiflash/']
+aliases: ['/docs/v4.0/tiflash/use-tiflash/','/docs/stable/reference/tiflash/use-tiflash/']
---
# Use TiFlash
diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md
index 099a969c69cdf..c35ed7d375b2c 100644
--- a/tikv-configuration-file.md
+++ b/tikv-configuration-file.md
@@ -2,7 +2,7 @@
title: TiKV Configuration File
summary: Learn the TiKV configuration file.
category: reference
-aliases: ['/docs/stable/reference/configuration/tikv-server/configuration-file/']
+aliases: ['/docs/v4.0/tikv-configuration-file/','/docs/stable/reference/configuration/tikv-server/configuration-file/']
---
# TiKV Configuration File
diff --git a/tikv-control.md b/tikv-control.md
index 567da91d2c5b7..3d7cfd7892e36 100644
--- a/tikv-control.md
+++ b/tikv-control.md
@@ -2,7 +2,7 @@
title: TiKV Control User Guide
summary: Use TiKV Control to manage a TiKV cluster.
category: reference
-aliases: ['/docs/stable/reference/tools/tikv-control/']
+aliases: ['/docs/v4.0/tikv-control/','/docs/stable/reference/tools/tikv-control/']
---
# TiKV Control User Guide
diff --git a/tispark-overview.md b/tispark-overview.md
index cca6aa76c72dd..1ccef0d6eedf7 100644
--- a/tispark-overview.md
+++ b/tispark-overview.md
@@ -2,7 +2,7 @@
title: TiSpark User Guide
summary: Use TiSpark to provide an HTAP solution to serve as a one-stop solution for both online transactions and analysis.
category: reference
-aliases: ['/docs/stable/reference/tispark/']
+aliases: ['/docs/v4.0/tispark-overview/','/docs/stable/reference/tispark/']
---
# TiSpark User Guide
diff --git a/tiup/manage-tiup-component.md b/tiup/manage-tiup-component.md
index 02b02960eecdc..8f54f7a45a896 100644
--- a/tiup/manage-tiup-component.md
+++ b/tiup/manage-tiup-component.md
@@ -2,7 +2,7 @@
title: Manage TiUP Components with TiUP Commands
summary: Learn how to manage TiUP components using TiUP commands.
category: tools
-aliases: ['/docs/stable/reference/tools/tiup/manage-component/']
+aliases: ['/docs/v4.0/tiup/manage-tiup-component/','/docs/stable/reference/tools/tiup/manage-component/']
---
# Manage TiUP Components with TiUP Commands
diff --git a/tiup/tiup-bench.md b/tiup/tiup-bench.md
index 46ac6f95e080d..cbc68a334c417 100644
--- a/tiup/tiup-bench.md
+++ b/tiup/tiup-bench.md
@@ -2,7 +2,7 @@
title: Stress Test TiDB Using TiUP Bench Component
summary: Learns how to stress test TiDB with TPC-C and TPC-H workloads using TiUP.
category: tools
-aliases: ['/docs/stable/reference/tools/tiup/bench/']
+aliases: ['/docs/v4.0/tiup/tiup-bench/','/docs/stable/reference/tools/tiup/bench/']
---
# Stress Test TiDB Using TiUP Bench Component
diff --git a/tiup/tiup-cluster.md b/tiup/tiup-cluster.md
index 4fdc7df449905..cabb2a6e59257 100644
--- a/tiup/tiup-cluster.md
+++ b/tiup/tiup-cluster.md
@@ -2,7 +2,7 @@
title: Deploy and Maintain an Online TiDB Cluster Using TiUP
summary: Learns how to deploy and maintain an online TiDB cluster using TiUP.
category: tools
-aliases: ['/docs/stable/reference/tools/tiup/cluster/']
+aliases: ['/docs/v4.0/tiup/tiup-cluster/','/docs/stable/reference/tools/tiup/cluster/']
---
# Deploy and Maintain an Online TiDB Cluster Using TiUP
diff --git a/tiup/tiup-mirrors.md b/tiup/tiup-mirrors.md
index f5b2e46b8f443..88f6c6058c00a 100644
--- a/tiup/tiup-mirrors.md
+++ b/tiup/tiup-mirrors.md
@@ -2,7 +2,7 @@
title: Create a Private Mirror
summary: Learn how to create a private mirror.
category: tools
-aliases: ['/docs/stable/reference/tools/tiup/mirrors/']
+aliases: ['/docs/v4.0/tiup/tiup-mirrors/','/docs/stable/reference/tools/tiup/mirrors/']
---
# Create a Private Mirror
diff --git a/tiup/tiup-overview.md b/tiup/tiup-overview.md
index 48697c300164b..468d79487e7d4 100644
--- a/tiup/tiup-overview.md
+++ b/tiup/tiup-overview.md
@@ -2,7 +2,7 @@
title: TiUP Overview
summary: Introduce the TiUP tool and its ecosystem.
category: tools
-aliases: ['/docs/stable/reference/tools/tiup/overview/']
+aliases: ['/docs/v4.0/tiup/tiup-overview/','/docs/stable/reference/tools/tiup/overview/']
---
# TiUP Overview
diff --git a/tiup/tiup-playground.md b/tiup/tiup-playground.md
index 9b4b590aba315..8bcfbc9d2d5e4 100644
--- a/tiup/tiup-playground.md
+++ b/tiup/tiup-playground.md
@@ -2,7 +2,7 @@
title: Quickly Deploy a Local TiDB Cluster
summary: Learn how to quickly deploy a local TiDB cluster using the playground component of TiUP.
category: tools
-aliases: ['/docs/stable/reference/tools/tiup/playground/']
+aliases: ['/docs/v4.0/tiup/tiup-playground/','/docs/stable/reference/tools/tiup/playground/']
---
# Quickly Deploy a Local TiDB Cluster
diff --git a/transaction-isolation-levels.md b/transaction-isolation-levels.md
index 75c32cd693dc4..a7f29ced349ef 100644
--- a/transaction-isolation-levels.md
+++ b/transaction-isolation-levels.md
@@ -2,7 +2,7 @@
title: TiDB Transaction Isolation Levels
summary: Learn about the transaction isolation levels in TiDB.
category: reference
-aliases: ['/docs/stable/reference/transactions/transaction-isolation/']
+aliases: ['/docs/v4.0/transaction-isolation-levels/','/docs/stable/reference/transactions/transaction-isolation/']
---
# TiDB Transaction Isolation Levels
diff --git a/transaction-overview.md b/transaction-overview.md
index 8cc899b2111e6..275d86ce387b0 100644
--- a/transaction-overview.md
+++ b/transaction-overview.md
@@ -2,7 +2,7 @@
title: Transactions
summary: Learn transactions in TiDB.
category: reference
-aliases: ['/docs/stable/reference/transactions/overview/']
+aliases: ['/docs/v4.0/transaction-overview/','/docs/stable/reference/transactions/overview/']
---
# Transactions
diff --git a/troubleshoot-tidb-cluster.md b/troubleshoot-tidb-cluster.md
index b02d922aa2abe..4b999a46953f6 100644
--- a/troubleshoot-tidb-cluster.md
+++ b/troubleshoot-tidb-cluster.md
@@ -2,7 +2,7 @@
title: TiDB Cluster Troubleshooting Guide
summary: Learn how to diagnose and resolve issues when you use TiDB.
category: how-to
-aliases: ['/docs/stable/how-to/troubleshoot/cluster-setup/']
+aliases: ['/docs/v4.0/troubleshoot-tidb-cluster/','/docs/stable/how-to/troubleshoot/cluster-setup/']
---
# TiDB Cluster Troubleshooting Guide
diff --git a/troubleshoot-tidb-lightning.md b/troubleshoot-tidb-lightning.md
index 8282ab77f790f..b4d5526c4661b 100644
--- a/troubleshoot-tidb-lightning.md
+++ b/troubleshoot-tidb-lightning.md
@@ -2,7 +2,7 @@
title: TiDB Lightning Troubleshooting
summary: Learn about common errors and solutions of TiDB Lightning.
category: how-to
-aliases: ['/docs/stable/how-to/troubleshoot/tidb-lightning/']
+aliases: ['/docs/v4.0/troubleshoot-tidb-lightning/','/docs/stable/how-to/troubleshoot/tidb-lightning/']
---
# TiDB Lightning Troubleshooting
diff --git a/tune-tikv-performance.md b/tune-tikv-performance.md
index 1abea56ee3ba7..9a0de6d36740e 100644
--- a/tune-tikv-performance.md
+++ b/tune-tikv-performance.md
@@ -2,7 +2,7 @@
title: TiKV Memory Parameters Performance Tuning
summary: Learn how to tune the TiKV parameters for optimal performance.
category: reference
-aliases: ['/docs/stable/reference/performance/tune-tikv/']
+aliases: ['/docs/v4.0/tune-tikv-performance/','/docs/stable/reference/performance/tune-tikv/']
---
# TiKV Memory Parameters Performance Tuning
diff --git a/upgrade-tidb-using-ansible.md b/upgrade-tidb-using-ansible.md
index 2a658c41c05f7..ab89614a6391b 100644
--- a/upgrade-tidb-using-ansible.md
+++ b/upgrade-tidb-using-ansible.md
@@ -2,7 +2,7 @@
title: Upgrade TiDB Using TiDB Ansible
summary: Learn how to upgrade TiDB using TiDB Ansible.
category: how-to
-aliases: ['/docs/stable/how-to/upgrade/from-previous-version/']
+aliases: ['/docs/v4.0/upgrade-tidb-using-ansible/','/docs/stable/how-to/upgrade/from-previous-version/']
---
# Upgrade TiDB Using TiDB Ansible
diff --git a/upgrade-tidb-using-tiup-offline.md b/upgrade-tidb-using-tiup-offline.md
index 2cfeb909f608a..8b2d062d5ef84 100644
--- a/upgrade-tidb-using-tiup-offline.md
+++ b/upgrade-tidb-using-tiup-offline.md
@@ -2,6 +2,7 @@
title: Upgrade TiDB Using TiUP Offline Mirror
summary: Learn how to upgrade TiDB using the TiUP offline mirror.
category: how-to
+aliases: ['/docs/v4.0/upgrade-tidb-using-tiup-offline/']
---
# Upgrade TiDB Using TiUP Offline Mirror
diff --git a/upgrade-tidb-using-tiup.md b/upgrade-tidb-using-tiup.md
index 88a9f9f14272c..a3a54f2f728e7 100644
--- a/upgrade-tidb-using-tiup.md
+++ b/upgrade-tidb-using-tiup.md
@@ -2,7 +2,7 @@
title: Upgrade TiDB Using TiUP
summary: Learn how to upgrade TiDB using TiUP.
category: how-to
-aliases: ['/docs/stable/how-to/upgrade/using-tiup/']
+aliases: ['/docs/v4.0/upgrade-tidb-using-tiup/','/docs/stable/how-to/upgrade/using-tiup/']
---
# Upgrade TiDB Using TiUP
diff --git a/user-account-management.md b/user-account-management.md
index b6a4d8b186be0..14132e40c0f1e 100644
--- a/user-account-management.md
+++ b/user-account-management.md
@@ -2,7 +2,7 @@
title: TiDB User Account Management
summary: Learn how to manage a TiDB user account.
category: reference
-aliases: ['/docs/stable/reference/security/user-account-management/']
+aliases: ['/docs/v4.0/user-account-management/','/docs/stable/reference/security/user-account-management/']
---
# TiDB User Account Management
diff --git a/user-defined-variables.md b/user-defined-variables.md
index a798dbd998086..2c6309a80e1d7 100644
--- a/user-defined-variables.md
+++ b/user-defined-variables.md
@@ -2,7 +2,7 @@
title: User-Defined Variables
summary: Learn how to use user-defined variables.
category: reference
-aliases: ['/docs/stable/reference/sql/language-structure/user-defined-variables/']
+aliases: ['/docs/v4.0/user-defined-variables/','/docs/stable/reference/sql/language-structure/user-defined-variables/']
---
# User-Defined Variables
diff --git a/views.md b/views.md
index 11e23e8b2c64e..ba59233f089b3 100644
--- a/views.md
+++ b/views.md
@@ -2,7 +2,7 @@
title: Views
summary: Learn how to use views in TiDB.
category: reference
-aliases: ['/docs/stable/reference/sql/views/']
+aliases: ['/docs/v4.0/views/','/docs/stable/reference/sql/views/']
---
# Views
diff --git a/whats-new-in-tidb-4.0.md b/whats-new-in-tidb-4.0.md
index 634ac2d070f85..f46c226aaa53e 100644
--- a/whats-new-in-tidb-4.0.md
+++ b/whats-new-in-tidb-4.0.md
@@ -2,6 +2,7 @@
title: What's New in TiDB 4.0
summary: Learn the new features of TiDB v4.0.
category: introduction
+aliases: ['/docs/v4.0/whats-new-in-tidb-4.0/']
---
# What’s New in TiDB 4.0