无效链接
重定向
docs.json 文件中添加 redirects 字段即可设置 301 重定向。
/source/path 永久重定向到 /destination/path,以避免丢失原页面累积的 SEO 成效。
要匹配通配符路径,请在参数后添加 *。在此示例中,/beta/:slug* 会匹配 /beta/introduction,并将其重定向至 /v2/introduction。
帮助预防无效链接的工具
docs.json 文件中添加 redirects 字段即可设置 301 重定向。
/source/path 永久重定向到 /destination/path,以避免丢失原页面累积的 SEO 成效。
要匹配通配符路径,请在参数后添加 *。在此示例中,/beta/:slug* 会匹配 /beta/introduction,并将其重定向至 /v2/introduction。