Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Wildcard Domain

Discussion in 'General Discussion' started by jayvicious, Apr 15, 2014.

  1. jayvicious

    jayvicious Registered

    Joined:
    Apr 15, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi , i've 2 domain parked in a Cpanel.

    Domain A acts as a form submission .
    Domain B acts as a product page for affiliate.

    Scenario : When user register the form at Domain A generates affiliate link for Domain B [I know its possible with wildcard subdomain,but how?]

    I'm using this PHP code to generate the form.

    <?php
    $new_link = "";
    if(isset($_POST['submit']))
    {
    if(isset($_POST['cid'],$_POST['gid']))
    {
    $cid = $_POST['cid'];
    $gid = $_POST['gid'];
    $new_link = "domainb.com/ref=".$cid.$gid;
    }
    }

    ?>


    Is there any help i can get from here?
    Thanks in advance.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,934
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Could you elaborate a little more on what you are attempting to accomplish? For instance, what is the purpose of wildcard subdomains?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice