Sub Domain

Discussion in 'PHP' started by D3Si, Dec 5, 2006.

  1. #1
    Okie well I have 1 Question..

    We are start new website and i want to give subdomain page to each users like how myspace has it.. myspace.com/name

    so i want is name.mydomain.com and site is in php so is there any way that if they go on name.mydomain.com and it forword it to thier profile like mydomainc.com/profile.php?1 something like that..

    please reply all reply will be helpful..
     
    D3Si, Dec 5, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    You need to ask your host to enable wilcard dns, do that and come back for htaccess instructions, not all hosts will do it....
     
    krakjoe, Dec 5, 2006 IP
  3. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can look at wordpress multi user (or wordpress mu) it has that option but yes you'll have to ask your host for some changes.
     
    maiahost, Dec 5, 2006 IP
  4. Pierre Monteux

    Pierre Monteux Peon

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    anybody familar on how to do this on Apache 2.2?
     
    Pierre Monteux, Dec 5, 2006 IP
  5. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Should be about the same as Apache 1.3.x.x.. .htaccess!
     
    CodyRo, Dec 5, 2006 IP
  6. D3Si

    D3Si Peon

    Messages:
    569
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #6
    okie thanx eevryone for reply.. yeah i will ask my host hes cool with me so he will help me out..
     
    D3Si, Dec 5, 2006 IP
  7. Pierre Monteux

    Pierre Monteux Peon

    Messages:
    63
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Forgive me for sounding a bit noobish, but I've done some research on the topic, and i'm still a bit confused. I understand there are two parts to setting this up the wildcard DNS, as mentioned earlier by krakjoe, and the htaccess part. The wildcard dns works, however even after a bit of research, I'm still completely confused about how to automatically make it go from account.domain.com to domain.com/account.... I'll i'm achieving is it simply loading account.domain.com as domain.com...so I know i'm messing things up? Somebody care to enlighten me?
     
    Pierre Monteux, Dec 5, 2006 IP
  8. maiahost

    maiahost Guest

    Messages:
    664
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #8
    maiahost, Dec 6, 2006 IP