PDA

View Full Version : Subdomain in the default /public_html



Maverick
01-04-2007, 11:22 AM
Subdomain in the default /public_html.

Is it possibile to another folder instead of public_html ?

Because a few subdomain looks ugly in the default /public_html

Foe example
/public_html
..subdomainA
..subdomainB
..subdomainC
....
...
..

If one domain contains many subdomains will make the default /public_html too many folder inside it.

Is any way to point the subdomain to another folder such as /public_html/sub_domain . It will be much better.
Is it possibile to another folder instead of public_html ?

Foe example
/public_html/sub_domain
../sub_domain/subdomainA
../sub_domain/subdomainB
../sub_domain/subdomainC
....
...
.
ps : Ipowerweb can point the subdomain to any folder you want just under the /public_html.

It will be nice to have this function.

shadmego
01-05-2007, 05:33 AM
It should be. Once you create your subdomain, move the folder from /public_html/subdomainA

to

/public_html/subdomains/subdomainA

and setup the redirection correctly so that when someon goes to http://subdomainA.domain.com, the server takes them to www.domain/subdomain/subdomainA

Of course, the user will only see subdomainA.domain.com in the URL field.


~regards
Shadmego

clippis
01-05-2007, 07:23 AM
i think that you have to change .htaccess
read my point http://hostmonsterforum.com/showthread.php?t=401

RDM
01-05-2007, 11:31 AM
You can do that with your main domain, but you cannot do it with sub-domains. I have tried everything that I can think of and nothing works, in the way of masking the URL.

Sub-domains are setup differently then domains. I have read that it will work if you have wild sub-domains turned off in apache, but HM does not.