如何在网络浏览器网址路径&中隐藏物理目录文件夹“网页”。浏览网页时超链接url路径?我正在看的RouteConfig是......
让我们说而不是这个
https://www.foo.com/Webpages/SignIn.aspx
https://www.foo.com/Webpages/MemberReport.aspx
https://www.foo.com/Webpages/Admin/ManagerReport.aspx
https://www.foo.com/Webpages/UserAccount.cshtml
https://www.foo.com/Webpages/SavedValues.cshtml
但是这样的工作......
https://www.foo.com/SignIn.aspx
https://www.foo.com/MemberReport.aspx
https://www.foo.com/Admin/ManagerReport.aspx
https://www.foo.com/UserAccount.cshtml
https://www.foo.com/SavedValues.cshtml
拥有此物理目录路径
X:\inetpub\Foo\Webpages\SignIn.aspx
X:\inetpub\Foo\Webpages\MemberReport.aspx
X:\inetpub\Foo\Webpages\Admin\ManagerReport.aspx
X:\inetpub\Foo\Webpages\UserAccount.cshtml
X:\inetpub\Foo\Webpages\SavedValues.cshtml
我可以将这个可点击的超链接作为
SignIn.aspx
MemberReport.aspx
联系\ ManagerReport.aspx
UserAccount.cshtml
SavedValues.cshtml
namespace Dealer.WebApp.Mobile
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.Ignore("{resource}.axd/{*pathInfo}");
routes.MapPageRoute("Default", "", "~/Webpages/SignIn.aspx");
}
}
}
感谢。