Php Newbie, Looking for a script to allow a user to receive his or her own page after registering to my site. example... website name = www.hello.com, user name in registration (user name field) = ralph123. after registration, user's url will be www.hello.com/ralph123 Results from script should be the same as what happens when you get a myspace page. You have your own editable page based off of a template after you sucessfully complete your registration. please help...
Here's a starting point, chuck something like the following into .htaccess: RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) - [PT,L] RewriteRule ^(.*) /index.php Code (markup): What the above rules do is redirect everything that doesn't already exist as a file or directory to /index.php. index.php just needs to have code to parse the URL string (look at $_SERVER["REQUEST_URI"]).