View Single Post
  #5 (permalink)  
Old 07-07-2009, 06:07 AM
peter.moore peter.moore is offline
Registered User
 
Join Date: Jul 2009
Posts: 6
peter.moore is on a distinguished road
index script suggestion

Thanks for your reply.

My web host provider doesn't allow me to setup seperate
CNAME alias records under my domain for each subdomain, etc.

So that leaves your 'index script' suggestion.
I had setup a subdomian "info.domain.com" under my hosting account "domain.com", so that's already been done,
but I have one question.

Should I place the code snippet:
<?php
$mydomain = str_replace("www.", "", $_ENV['HTTP_HOST']);
header("Location: http://mail.google.com/a/{$mydomain}");
?>

into my index.html file, or create an new file called index.php and place that in the 'root' directory?
Thanks again for your time...much appreciated.
Reply With Quote