浏览代码

Update Netlify _redirects section

pull/3086/head
Slavi Pantaleev 2 年前
committed by GitHub
父节点
当前提交
25595a3c65
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      docs/configuring-well-known.md

+ 1
- 2
docs/configuring-well-known.md 查看文件

@@ -170,10 +170,9 @@ backend matrix-backend
rsprep ^Location:\ (http|https)://matrix.example.com\/(.*) Location:\ \1://matrix.example.com/.well-known/matrix/\2 if response-is-redirect
```

**For Netlify**, it would be something like this:
**For Netlify**, configure a [redirect](https://docs.netlify.com/routing/redirects/) using a `_redirects` file in the [publish directory](https://docs.netlify.com/configure-builds/overview/#definitions) with contents like this:

```
# In the _redirects file in the website's root
/.well-known/matrix/* https://matrix.example.com/.well-known/matrix/:splat 200!
```



正在加载...
取消
保存