Current Routing solution will generate problems if you access its root using URI segments.
For example, The files of the framework will need to be accessed using root domain.
http://localhost will work. But if the virtual host sframework.dev is set up at sframeworkdev folder then it needs to be the root folder.
Possible solutions: Change to some open source router solution instead of working on the router. for example AltoRouter.