This little script provides you a way to have pretty URLs in your php web site. If you just want to have routes but you do not want to bother with massive php frameworks, you could find this useful
[UNSUPPORTED] Lightweight and flexible request router framework for PHP
A drop dead simple URI routing library for PHP, with support for optional parameters and regular expressions.