I am working on a personal MVC framework including a router for the URLs.
At the moment I have a PagesController and a 'sitemap' view. So I can go to url.com/pages/sitemap/
I have also set up URL Route for "/info/{page}/". I've done this for static pages that I want to have 'info' in their URL. This also works for sitemap.
Then, as intended, I have mapped /sitemap/ to the sitemap page as well.
I only want /sitemap/ to be a valid resource, what would be the best way to disable/redirect the other URLs