directory based routing to pages