【发布时间】:2011-03-16 11:03:24
【问题描述】:
我使用带有 ASP.NET 4.0 和 IIS7 的 Visual Studio 2010。 当我打开我的网站时,网址如下所示
http://localhost:6549/Website/help/tab/contact-us
我想要一个友好的 URL:
http://mysite/help/tab/contact-us
或任何可以帮助我摆脱 URL 中的端口 6549
http://localhost/Website/help/tab/contact-us
我使用 ASP.NET 开发服务器,这是 Visual Studio 在运行 localhost 网站时使用的服务器
等等!!请区分项目的“属性窗口”和“属性页面”。我一直尝试您的建议,但使用“属性页面”,并且该页面上没有像 使用动态端口 这样的属性。此属性只能在“属性窗口”中找到
【问题讨论】:
-
您是否尝试过通过修改 IIS 中的网站绑定来添加新的主机头?
标签: asp.net iis-7 localhost friendly-url