Subdomain - redirect

dreamfox

Verified User
Joined
Mar 13, 2006
Messages
50
Hello,

I have 2 subdomains like:
support.test.com
banners.test.com

I have a website with 200 users. I want to give them a short url line:

username.test.com

So if a user typ in username.test.com it must be redirected to:
www.test.com/index.php
In the index.php i will redirect the users

But when someone goes to support.test.com then it must be go really to the subdomain: support.test.com

test.com is on a shared IP

Is this possible, and how can I set this up?
Thank you
 
One way to do it is to manually create the A record for the subdomain and then create a domain pointer. Check the box "Create as an Alias".
 
almost

Well i change the domain to a static IP
I added a A record *.ipadress

I added:
ServerAlias www.test.com test.com *.test.com
to the custom httpd.conf

Seems to be working all:

blahblah.test.com will go to www.test.com
but: support.test.com (the real subdomian) is also going to www.test.com

I already know that:
If you wish to use "proper" subdomains as well, ensure the wildcard comes after the VirtualHost section for your subdomain.

But the custom config is I think first loaded
 
Back
Top