Login

Change web query address redirection

HTTP method

PUT

URL

https://api.zilore.com/dns/v1/domains/{domain_name}/web_forwarding/{wf_address_id}

Request parameters

Parameter

Description

domain_name

Domain name. Must conform to the standard. Names of national domains must be passed in Punycode format.

Web redirection identifier.

Additional parameters

Parameter

Description

https

Protocol:

  • 0 — http
  • 1 — https

code

Address redirection status code 301 or 302

destination

Full URL (without protocol) to which redirection is to take place

source

Subdomain of the current domain (the domain name value of the current domain will be added to source). If it is not passed, the redirection will be created for the domain name itself

Request example

PUT https://api.zilore.com/dns/v1/domains/example.com/web_forwarding/75
X-Auth-Key: 6fac94db-691b-ec08-d22c-00000b7c06c0
Content-Type: application/x-www-form-urlencoded

source=foo

Response example

{
"status": "ok",
"response": {
"wf_address_id": "75",
"wf_address_status": "updated"
}
}