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
|
Newbie Member
|
|
| 10Jan2007,03:12 | #11 |
|
Go4Expert Founder
|
![]() |
| 10Jan2007,09:38 | #12 |
|
sinasylum, try creating a seperate thread for your queries rather than jumping into months old thread.
|
|
Newbie Member
|
|
| 10Jan2007,11:00 | #13 |
|
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 |
|
Quote:
Originally Posted by sinasylum |
|
Newbie Member
|
|
| 20Sep2011,21:32 | #15 |
|
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!
|


) thanks