I am building a PHP based application which has users. Currently I have a view profile directory which has an index.php.
When a user clicks on another user's picture, I redirect them to view-profile/?u="username"
Due to this I do a get of u and show profile accordingly.
Is there a way to change the URL path to something like root/view-profile/username or better can i make it something like root/username
Is this possible through htaccess? If so, can someone please help me with this.