I have a website where each user has a profile with a URL of type www.site.com/username123
. Now I want to allow each user to use their own domain as www.username123.com
that points to their profile.
Tumblr does exactly what I want (screenshot below):
Assuming I'm using PHP and Apache: