Adding the optional option http-status to README.md

This commit is contained in:
Daniel Zegarra 2023-04-23 17:37:29 +02:00
commit ef05953c24

View file

@ -49,6 +49,14 @@ The star `*` at the end tells us that the remaining URL path is also forwarded t
> If you use Cloudflare or any DNS which supports [CNAME Flattening](https://blog.cloudflare.com/introducing-cname-flattening-rfc-compliant-cnames-at-a-domains-root/), you still can use CNAME records pointing to `r.forwarddomain.net`, it's much recommended to use CNAME records rather than A/AAAA records.
You can choose the type of redirection you want to use by declaring the `http-status` value:
```
www.old.com IN CNAME r.forwarddomain.net
_.www.old.com IN TXT http-status=302;forward-domain=https://old.com/*
```
> The default value for "http-status" is `301` if not specified.
## FAQ