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.
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:
You can do it by editing the .htaccess file but first you have to setup a wildcard DNS for subdomains Here is a walk-through http://www.wiredstudios.com/php-programming/setting-up-wildcard-dns-for-subdomains-on-cpanel.html Editing the .htaccess file was discussed in an old thread http://forums.digitalpoint.com/showthread.php?t=16114 let me know if this helps
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?