Hello, I have a PHP personal space systems. It allows the user registration, then get a personal space. But all it points the URL address to www.mysite.com. What php documents should I modify, make it like FACEBOOK: each user has his own URL address, convenient to share with his friends. (www.mysite.com/ + personal extension name) Thanks.
You can get this done with mod rewrite it's a Apache tool you can use to change the URLs but keep the scripting the same, see the link below lot's of usefull information is there for you to read. http://www.google.co.uk/search?q=mo...s=org.mozilla:en-GB:official&client=firefox-a Kind regards, Glen Hughes
As HuggyEssex said, you need mod_rewrite module for apache. Then you create .htaccess file in the root of your site and add the following: What the above rule to: If the requested URI is not an existing directory and is not an existing file, then you are redirected to user.php with id=YOUR_USERNAME_IN_URI.
Thanks a lot. The mod_rewrite and .htaccess are new for me. I am reading the tutorial. But it is difficult to know more in a short time. I have checked my php system. it has already had a .htaccess. and wrote somthing in it. What should I do next? post the georgiivanov's code below it? it was not work. Would you like to help me more? Thanks again.