Routing is an important part of any .Net 6 website. You can control all the routing yourself, or you can use built-in routing for some or all routing.
Activate Catch-all routing
Most Relatude sites on .Net Framework use a catch-all route for handling routing for most pages. In .Net 6, the implementation is different, but the same option is available. In .Net 6, it is implemented using a class that inherits from DynamicRouteValueTransformer.
If you want to use the catch-all routing for your .Net 6 website, you must first add the DynamicRouteValueTransformer routing to the WebApplicationBuilder:
Then you have to call UseWAFRouting on the WebApplication: