I have a lot of URLs I need to redirect to the homepage (the reasons are convoluted - and SEO isn't important so be assured this is what I need to do).
eg
mydomain.com/hello
mydomain.com/bye
mydomain.com/whatever
& 30 more all need to be permanently redirected to the homepage.
I could setup all these routes individually in RouteConfig.cs like this:
routes.MapRoute("AboutUs", "aboutus", new { controller = "Home", action = "Index" });
However that would be a lot of work, and this is a frequent requirement.
I can find nothing on Google.
How can I use a list or some more efficient approach for this?
EDIT:
Dynamic routes seems overkill - I just need a list of URL's I can redirect somewhere without crufting up my RouteConfig.cs. The idea is a terse simple quick solution - rather than implementing something complex like creating dynamic routes.