I want to translate domain.com/nickname to domain.com/user/view, I made this code below that works however when there is some nickname with the same name as a controller there is no controller open.
I would personally make it be user/nickname but you can put all of your other controller rules first and users last as they match in order.
You will have to use very specific and not general rules for all of the other controllers. I would not do this if you have a lot of actions because this could make your app slow down or links with wrong urls. It will also make you prefix all of your other actions with the controller name and action in the URL but they must not match your user controller/action. I would not recommend this at all because it adds a lot of complexity for no gain but if you really need it to be domain/nickname it’s possible.