Domains

Forward a domain to a URL

Forward a domain you own to another URL (e.g. brand.com -> https://brand.dev) - useful for multi-TLD brands. The domain must point at domani's nameservers/parking IP for the redirect to serve. Permanent (308) by default or temporary (307). Requires domains:write scope.

put/api/domains/{domain}/redirect

Request

  • Base URL: https://domani.run
  • URL: https://domani.run/api/domains/{domain}/redirect
  • Auth: HTTP bearer

Path parameters

domainstring required

Domain name

Request body

urlstring required

Target URL (or bare domain) to forward to, e.g. https://brand.dev

permanentboolean

true = permanent (308, default), false = temporary (307)

Response

Redirect set

domainstring
redirect_urlstring nullable
permanentboolean

Changes

No recorded changes to this operation across all 2 revisions of this API.