var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
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..
xxx.mydomain.com --> Thanks for coming to the xxx page.
yyy.mydomain.com --> 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..
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
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..
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 *.urdomain.com to predefined page
in that page use the code u were given by sprintserve
and i think ur done that way