I'm trying to create a route for the following urls: www.mysite.com/user/username www.mysite.com/user/username/pictures
I tried doing that with the following code:
routes.MapRoute(
"UserProfile",
"user/{sn}/{action}",
new { controller = "User", action = "Index", sn = "" }
);
So if an action is not specified, you go to the index action.
However, it's not working and I'm not sure what I'm doing wrong.
Thanks for any help.