If you have Apache , you must mod_rewrite .
Create a .htaccess file and upload it to the Apache root document and put this code:
RewriteEngine on RewriteRule ^(.+)$ user/profile.php?username=$1
This will cause the username to be user / profile.php with the username parameter, and you can get the username in the profile.php file and then make an SQL query to get the user profile.
source share