Hi folks,
I'd like to give a user who registers on my site a custom URL. This would not be a physical folder, but rather a subdomain that points to a different page. Think of a myspace URL, as an example. So, upon registering I'd dumb down the username in case there are any non alphanumeric characters, and save it in the db as a field. I'd then use savedusername.website.com for the redirect.
I have (basic) experience using mod_rewrite, but I'm not sure if that's the best solution. I'm wondering if anyone has created something like this, and knows:
1. Is mod_rewrite the best way to go? If so, would I really have to have thousands of lines, each line for a different username and their URL?
2. Is there a better PHP/DB way to go that doesn't involve creating a linking file that has thousands of redirect lines in it?
Thanks