I'm trying to do a "Framework" , I try to get the path that the user requests from the current directory using the Mod Rewrite, with a .htaccess redirect the user to index.php (Tal as the well-known frameworks do), I tried to use $ _SERVER ['REQUEST_URI'] but it also shows me the name of the directory, example:
With the route: link
$_SERVER['REQUEST_URI'] <= MiFramework/MiRuta/Parametros
And what I would like to obtain is:
MiRuta/Parametros