Description
This function parks domains, or adds addon domains. This function also allows you to:
- Park a domain onto an addon domain.
- Add an addon domain with the same document root as another addon domain.
Warning:
- UAPI (recommended) — None.
- cPanel API 2 —
Park::park
— This function parks a domain on another domain.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The name of the domain to park. |
A valid domain name. |
example.com
|
topdomain |
string |
The base subdomain on which to park an addon domain. By default, the main account's document root contains the parked domain's document root. |
A valid domain name. |
example.targetdomain.com |
disallowdot |
boolean |
Whether to strip dots (.) from the topdomainparameter. |
|
1 |
Returns
This function returns a confirmation message that displays the parked domain and the domain on which the system parked it.