I have a perl script that runs my online community. It offers them a personal profile page and I would like to make it so that www.mydomain.com/$username will redirect to www.mydomain.com/profile_script.pl?username=$username.
My approach right now is to edit the create account script and upon a creation, it creates the directory mydomain.com/$username and create a index.php file that redirects it the profile script mydomain.com/profile_script?username=$username.
Would this be the best logical approach of carrying out this job? Is there something more efficient or faster?