在 global.asax 的应用程序开始我有
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
RegisterRoutes(RouteTable.Routes)
End Sub
和
Private Sub RegisterRoutes(ByVal routes As RouteCollection)
routes.MapPageRoute("contactform", "{locale}/contact", "~/general/ContactUs.aspx")
End Sub
奇怪的是,当我直接访问网页时
~/general/contactus.aspx
一切都像魅力一样,但是当我间接访问该页面时
~/en/contact
返回 404 错误!我在这里错过了什么吗?