small cleanup (#259)

Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/259
Co-authored-by: crapStone <crapstone01@gmail.com>
Co-committed-by: crapStone <crapstone01@gmail.com>
This commit is contained in:
crapStone 2023-11-15 17:59:04 +00:00 committed by crapStone
parent ea68a82cd2
commit 7f0a4e5ca9
14 changed files with 23 additions and 18 deletions

View file

@ -2,13 +2,19 @@
## Custom domains
...
Custom domains can be used by creating a `.domains` file with the domain name, e.g.:
```text
codeberg.page
```
You also have to set some DNS records, see the [Codeberg Documentation](https://docs.codeberg.org/codeberg-pages/using-custom-domain/).
## Redirects
Redirects can be created with a `_redirects` file with the following format:
```
```text
# Comment
from to [status]
```
@ -30,7 +36,7 @@ from to [status]
Redirects all paths to `/index.html` for single-page apps.
```
```text
/* /index.html 200
```
@ -38,7 +44,7 @@ Redirects all paths to `/index.html` for single-page apps.
Redirects every path under `/articles` to `/posts` while keeping the path.
```
```text
/articles/* /posts/:splat 302
```