I am developing a PHP Web Application and I know about htaccess ( and how to create the htaccess file ). I have activated mod_rewrite in XAMPP ( I am testing it locally ). The current Profile URL is:

Where Abhishek Biswal is the UserName.
I want it to look like:

Please include the htaccess code in your answer. Thanks In Advance.

when user signs up, you could use


and in that dir, you could make index.php, and in index.php use file_get_contents (making sure that any images or links a relative to the directory, or use absolute urls) to get the contents of user.php?name=$username