소스 검색

Update Netlify _redirects section

pull/3086/head
Slavi Pantaleev 2 년 전
committed by GitHub
부모
커밋
25595a3c65
No known key found for this signature in database 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!
```



불러오는 중...
취소
저장