Results 1 to 4 of 4
  1. #1

    Unhappy WHM/Cpanel howto question

    I have a simple question, I would like to be able to have all subdomains point to a single script that will programaticlly figure out what subdomain was reqested and act on it..

    example: --> Thanks for coming to the xxx page. --> Thanks for coming to the yyy page.

    you get the idea.. I know how to do this under IIS, but I have switched to an ISP that is running CPANEL/WHM..

    I would assume this change would be in the WHM DNS panel..

    Any help would be appriciated..


  2. #2
    You can do this with this line in a php file

    Thank you for coming to  <?php echo $HTTP_SERVER_VARS['HTTP_HOST'] ?>
    Last edited by sprintserve; 05-16-2005 at 08:47 AM.
    Like us on Facebook to qualify for discounts!
    Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting |
    Services: | Managed Multiple Cores 64bit Servers | Server Management |

  3. #3
    Thanks.. but what I need is the help with the server setup so I don't keep getting dns errors because the subdomain was not setup.. I wasnt it to be a virtual subdomain..


  4. #4
    Join Date
    Dec 2004
    it can be done manually from the httpd.conf but if ur running cpanel as u said
    go to the root whm ,
    Setup/Edit Domain Forwarding
    make a forwarder * to predefined page
    in that page use the code u were given by sprintserve
    and i think ur done that way
    POINTLeb Hosting Lebanese Hosting for the Middle East
    The fact that no one understands you , does not make you an artist
    Mo Ghaoui's Personal Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts