Newbie Member
10Jan2007,03:12   #11
sinasylum's Avatar
I am trying to make my site do this...

when cpanel creates a sub-domain it just puts the root folder of the sub-domain as a sub-folder of the primary domain on the account. so http://sub.domain.com would also be http://www.domain.com/sub/.

but I want to make it where two things happen... if someone accesses a sub-domain with www, it rewrites the subdomain url without www, and also when someone accesses my subdomain as a sub-folder of the root domain, it also rewrites that and directs the user to the subdomain url.

Anyone know how to do both or either? thanks for all feedback!

regards,

the G4E newbie
Go4Expert Founder
10Jan2007,09:38   #12
shabbir's Avatar
sinasylum, try creating a seperate thread for your queries rather than jumping into months old thread.
Newbie Member
10Jan2007,11:00   #13
sinasylum's Avatar
sorry sharbbir. i wasn't trying to mess things up, i just saw a similar topic and thought i might be better off doing it here. i will start a new thread for the matter. i actually thought by making a new one i may get the response of, "it has already been addressed in another existing thread". I was wrong ) thanks
Go4Expert Founder
10Jan2007,11:31   #14
shabbir's Avatar
Quote:
Originally Posted by sinasylum
sorry sharbbir. i wasn't trying to mess things up, i just saw a similar topic and thought i might be better off doing it here. i will start a new thread for the matter. i actually thought by making a new one i may get the response of, "it has already been addressed in another existing thread". I was wrong ) thanks
I just did not mean that you should not be going through the threads but if this thread does not have what you are looking for you should always be going with the new one.
Newbie Member
20Sep2011,21:32   #15
neteragroup's Avatar
Thanks shabbir, this worked for me and took me a long time scouring the internet to find a workable solution with my dynamic subdomains. Much appreciated!