NetPires

Member
Jul 5, 2003
12
0
151
Hi,

Is there any way to point a domain or a sub-domain to another address (www.domain.com -> http://test.another.net/folder/index.php) like the possible in WHM



but with a PHP based script witch connect to Accounting.php.inc, like this:

require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "<YOUR USERNAME";
$accesshash = '<YOUR KEY>';
$usessl = "0";

$do = domainfwd($host,$user,$accesshash,$usessl,...);


Thanks.
 

davemehta

Member
Jul 13, 2005
8
0
151
I would like to know this as well.. I want to add a subdomain to the newly created account and have it forward to the appropriate address. Any clues?
 

cev

Member
Apr 10, 2002
17
0
301
Hi

Try it with:

<?
header('Location: http://www.joomeara.info');
?>


Rony