Multiple subdomain question


#1

Is there a way to make all the subdomains of
mySite.com like users.mySite.com and sebas.users.mySite.com, james.users.mysite.com, *.users.mysite.com redirect to users.mysite.com???

And a way to know which username is in PHP??

Thx!


#2

You have to set up all the subdomains in the panel, but you can make them all redirect, yes.

Sorry, don’t know what you mean by your second question though.


#3

yes, you can set up redirect in DH panel or by modifying htaccess file in your web folder. you may want to refer some articles in wiki http://wiki.dreamhost.com/index.php/Htaccess for the setup of htaccess file

I don’t think you can retrieve the username which has the access to the domain in PHP.

Save [color=#CC0000]$97[/color] (max discount) on dreamhost plans by using promo code: [color=#CC0000]97CRAZY[/color].


#4

[quote]Is there a way to make all the subdomains of
mySite.com like users.mySite.com and sebas.users.mySite.com, james.users.mysite.com, *.users.mysite.com redirect to users.mysite.com???[/quote]
If I understand you correctly, you wish for all possible sub-domains for users.mysite.com to be redirected to users.mysite.com and subsequently retrieve the actual sub-domain using PHP?

The first part of your question is known as ‘wildcard DNS’ and is generally not supported by DreamHost except in special cases. It can not be configured via the panel, but must be manually configured by DreamHost support, who may deny the request unless you can show a really good reason why you need it.

http://www.wiki.dreamhost.com/index.php/Wildcard_DNS

Mark


Save [color=#CC0000]$50[/color] on DreamHost plans using [color=#CC0000]PRICESLASH[/color] promo code (Click for DreamHost promo code details)


#5

I asked support to set up wild card subdomain (not in DNS, since I do use/manage external DNS) but for the virtual host setup.

With it, any subdomain is now coming into the main domain (in my case).

I guess you can ask DH to do it for one of your subdomain.

...* I’d be happier if DH had free shared SSL and redundant server setup. ..*.
http://Hostwick.com/