I have a php project using a directory structure and I want to create pretty urls. Basically I want to remove ".php" extension of each file and delete path stuff between localhost and the filename.
Example:
transform this => localhost/myproject/views/pages/login/login.php
into this => localhost/myproject/login
I know I have to configure .htaccess mod_rewrite but I don't know how exactly to be honest.