You can use a catch all parameter. A catch all parameter is defined by adding *
character at the beginning of the parameter name. It could be used only at the end of the route definition and it will catch the raw url string with slashes.
In your example it means that you will have to parse {page}
parameter manually from the RouteData
object.
routes.MapPageRoute("Route0", "public/{*fullpath}", "~/userpage.aspx", true);