Added support for pretty links. (e.g. http:://localhost:8080/page/ )