mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-19 03:26:57 +00:00
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:
parent
ea68a82cd2
commit
7f0a4e5ca9
14 changed files with 23 additions and 18 deletions
14
FEATURES.md
14
FEATURES.md
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue