Page 1 of 1

Is this possible?

Posted: Sat Feb 05, 2011 12:54 pm
by true3000
Alright, so here's the deal...and yes, I have searched high and low and haven't been able to find the solution I am looking for.

I want to create a subdomain such as texas.mydomain.com and when someone visits that site they get redirected to my main domain BUT with a welcome message such as "Hi Texans, welcome to mydomain.com"...

Now when someone enters just mydomain.com it would read as something generic like..."Hi there"...

Anybody know what the appropriate code would be or at least point me in the right direction?

Re: Is this possible?

Posted: Sat Feb 05, 2011 4:17 pm
by Neilos
This can be done in a variety of ways; using $_POST variables, $_SESSION variables.

I would suggest using POST variables where you would construct a redirect on the texas page like;

http://www.yoursite.com/?from=texas