0
sinasylum's Avatar, Join Date: Jan 2007
Newbie Member
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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
sinasylum, try creating a seperate thread for your queries rather than jumping into months old thread.
0
sinasylum's Avatar, Join Date: Jan 2007
Newbie Member
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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
0
neteragroup's Avatar, Join Date: Sep 2011
Newbie Member
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!