Removed pages from page urls

- Converted /pages/about-us to /about-us
- Changed UrlRewrites controller into a middleware