Hi, When a user signs up to my site I want them to get a personal url like www.mysite.com/username, similar to myspace etc. I don't want my web root at /var/www/ filled with subfolders or symlinks and would prefer to have them down one level , such as in a users folder. Does anybody have any suggestions on how i can achieve this? Thanks!
My personal favourite line which I have ever written ever in an htaccess file uses PHP to manage what page to return. RewriteRule ^([^&]*)$ /index.php?f=/$1& [QSA,L] Sends a request with any GET information to index.php, with the path as variable $_GET["f"] - only thing is, any requests with f as a GET variable make the submitted "f" override the internal one.
Thanks guys, will give that a shot. Sorry for taking so long to reply by the way, got distrated by the many other jobs on my TODO list for the site