The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Domain Forwarding

Discussion in 'General Discussion' started by NetPires, Jul 17, 2003.

  1. NetPires

    NetPires Member

    Joined:
    Jul 5, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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

    [​IMG]

    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.
     
  2. davemehta

    davemehta Member

    Joined:
    Jul 13, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  3. cev

    cev Member

    Joined:
    Apr 10, 2002
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hi

    Try it with:

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


    Rony
     
Loading...

Share This Page