I have this routing setup at the moment
routes.MapRoute(
"OldPages", // Route name
"page{id}.html", // URL with parameters
new { controller = "WebPage", action = "Details", pageName = "oldpage", moreInfoID = 0 },
new { action = "Details" }
);
I am moving from an old site to my new dynamic site and trapping all old URL's in this route to do a 301 redirect. My old site's pages all start with pageX.html or pageXX.html where X is a number.
My route currently handles this fine but I have just realised that my old site also has a page called index.html so I was wondering if the route can be modified to handle that or will I have to create a new route for just that?
Thanks