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:

localhost/app/user.php?name=AbhishekBiswal
Where Abhishek Biswal is the UserName.
I want it to look like:
localhost/app/AbhishekBiswal

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

when user signs up, you could use

mkdir($username)

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.