I want to make a route that could ckeck the end of the url for a pattern and if matched pass the entire url to the action as the parameter.
The point of this is to catch things like /something/something/robots.txt or something/something/sitemap.xml an than pass the url to an action that generates the the robots.txt or sitemap
I did this with my own url forwarding handler in a webforms app by checking the end of the url before passing it to the regular routing handlers.
the rout "{*catchall}/robots.txt" doesn't work because a catchall can only be at the end of the pattern.
How can i get this done using MVC routing
Thanks