I need help with URL redirections for subdomains sort of

Discussion in 'PHP' started by tech4, Mar 2, 2010.

  1. #1
    I have a programmer not able to do the work.

    If someone can point to the right direction. I have a site which creates profiles for restaurants.
    Each profile is like mysite/restaurant/location/id.com

    Now I want something simple like restaurant.mysite.com will redirect to the profile mysite/restaurant/location/id.com

    In short the URL is very long and not pleasant to remember, so I want users to type in restaurant.mysite.com and it will go to the long url.

    Can someone with knowledge on this share how this is done so I can give the info to my programmer who is stuck.

    Thank you.
     
    tech4, Mar 2, 2010 IP
  2. Sky AK47

    Sky AK47 Member

    Messages:
    298
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #2
    You need to setup wild card subdomains, I think you're able to with cPanel.
    I can't fully remember sorry, contact your host about it D:
     
    Sky AK47, Mar 2, 2010 IP
  3. tech4

    tech4 Well-Known Member

    Messages:
    544
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #3
    Thanks. but if you remember fully let me know.
     
    tech4, Mar 2, 2010 IP
  4. Narrator

    Narrator Active Member

    Messages:
    392
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Narrator, Mar 2, 2010 IP
  5. tech4

    tech4 Well-Known Member

    Messages:
    544
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    #5
    I am not a programmer, but I will give the links to the guy (hopefully he will read through it). Thanks a million. I hope it will work and that the programmer will read this.

    Just a question though, I have like hundreds of profiles (with long urls) and no subdomains setup will this work for a social site?
     
    Last edited: Mar 2, 2010
    tech4, Mar 2, 2010 IP