Login

Add web query address redirection

HTTP method

POST

URL

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

Request parameters

Parameter

Description

domain_name

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

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

Additional parameters

Parameter

Description

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

Adding address redirection causes all user records of type A with the name of the specified subdomain to be deleted

Response fields

Parameter

Description

wf_address_id

Identifier of new web address redirection

Request example

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

source=test&destination=othersite.com&https=0&code=302

Response example

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