SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Addict aguroyz's Avatar
    Join Date
    Jan 2009
    Location
    Konoha Fire Country
    Posts
    309
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to make www.abc.com/def to www.def.abc.com???

    hello,

    How could I make www.abc.com/def to www.def.abc.com??

    currently def is another site but is inside a directory...

    plz bear w/ me since i'm not that quite experienced on this..

    thank you..
    Uniquely FILIPINO... See how talented and creative Filipinos are.
    http://www.smalltym.com
    Custom Web Designs:
    http://proweaver.com

  2. #2
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can create a subdomain for the domain adc.com in the name, def.abc.com and then point the subdomain def.abc.com to the folder def. If you are hosted on any server with a control panel, this is not a tough task at all.
    ------------
    hzSari | HostingZoom.com
    ModVPS.com | ResellerZoom.com
    Power Speed Reliability

  3. #3
    SitePoint Addict aguroyz's Avatar
    Join Date
    Jan 2009
    Location
    Konoha Fire Country
    Posts
    309
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SariJ View Post
    You can create a subdomain for the domain adc.com in the name, def.abc.com and then point the subdomain def.abc.com to the folder def. If you are hosted on any server with a control panel, this is not a tough task at all.

    tnx for that, just another question though..

    Can I do that dynamically?? or lets say when a user registers, a subdomain will be created for that user.. How can I implement that??

    tnx again..
    Uniquely FILIPINO... See how talented and creative Filipinos are.
    http://www.smalltym.com
    Custom Web Designs:
    http://proweaver.com

  4. #4
    SitePoint Wizard SiberForum's Avatar
    Join Date
    Dec 2007
    Posts
    1,197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suppose that you need some script (web application) which will do that for you. You may ask about that on the programming forums here.

  5. #5
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, that is something which needs a script or so, to create the folder automatically and then a rewrite rule to redirect access to the folder to be redirected to the subdomain.
    ------------
    hzSari | HostingZoom.com
    ModVPS.com | ResellerZoom.com
    Power Speed Reliability

  6. #6
    Non-Member
    Join Date
    Mar 2008
    Location
    USA, New York--Born in India
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can I ask you why you want to do this though? What would be the benefit for you?

  7. #7
    SitePoint Addict aguroyz's Avatar
    Join Date
    Jan 2009
    Location
    Konoha Fire Country
    Posts
    309
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you misunderstood me here...

    What I wanted is that when a user registers to my site, he/she will be given a subdomain but right still don't know how to do that so instead of subdomain I created his/her directory so it goes like this www.mydomain.com/user1/

    but I wanted it to be like this www.user1.mydomain.com..

    Just like on multiply.com.. when you register you will be given a subdomain.. (eg. www.you.multiply.com).. like that
    Uniquely FILIPINO... See how talented and creative Filipinos are.
    http://www.smalltym.com
    Custom Web Designs:
    http://proweaver.com

  8. #8
    Non-Member
    Join Date
    Mar 2008
    Location
    USA, New York--Born in India
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh now I see what you are asking for. That will be different, you can either manually set it up for each new member registration or you can do it so that people will be given a subdomain automatically when they register. There should be some script out there for that.

  9. #9
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The script should read something like when $user registers, it should point to www.mydomainname.com/user/ and inside the user folder, a rewrite rule map www.mydomainname.com/user/ to www.user.mysqdomainnam.com
    ------------
    hzSari | HostingZoom.com
    ModVPS.com | ResellerZoom.com
    Power Speed Reliability

  10. #10
    SitePoint Addict aguroyz's Avatar
    Join Date
    Jan 2009
    Location
    Konoha Fire Country
    Posts
    309
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SariJ View Post
    The script should read something like when $user registers, it should point to www.mydomainname.com/user/ and inside the user folder, a rewrite rule map www.mydomainname.com/user/ to www.user.mysqdomainnam.com

    I think I got what you mean, but not quite really..

    what if the user inputs in the url www.user.mydomain.com,

    will this still work??
    Uniquely FILIPINO... See how talented and creative Filipinos are.
    http://www.smalltym.com
    Custom Web Designs:
    http://proweaver.com

  11. #11
    JustAFanOfSlash mdamin76's Avatar
    Join Date
    Dec 2008
    Location
    Stage
    Posts
    436
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This question is only answerable by the person who created multiply, blogspot and wordpress I guess. It's really complicated.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •