mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-25 18:38:30 +01:00
Update Netlify _redirects section
This commit is contained in:
parent
0c048c7592
commit
25595a3c65
@ -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
|
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!
|
/.well-known/matrix/* https://matrix.example.com/.well-known/matrix/:splat 200!
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user