Description

This function returns a parked domain's (alias's) redirection URL.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$get_redirect = $cpanel->api1('Park','getredirecturl', array('example.com') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $get_redirect = $cpliveapi->api1('Park','getredirecturl', ['example.com'] ); # Call the function.

<cpanel Module="Park::getredirecturl( $FORM('domain') )">
cpapi1 --user=username Park getredirecturl example.com

http://www.example.com

Parameters

ParameterTypeDescriptionPossible valuesExample
domain

string

Required

The domain name.

A valid domain name.example.com 

Returns

This function returns the target URL as a confirmation message.