【发布时间】:2015-04-24 00:52:01
【问题描述】:
是否可以从 URL 中删除子域(或基本上将其视为 www)?
示例: subdomain.domain.com/specific/link/forsubdomain -> domain.com/specific/link/forsubdomain
并且不让它指向主域并返回 404 错误, 例子: domain.com/specific/link/forsubdomain -> 返回 404,因为它只存在于子域中。
如果它也可以在 Haproxy 中做某事,或者在 ASP.net MVC 路由表修改中伪装 URL,我对它开放。
不仅仅是 IIS 配置。
只是想知道是否可以按照我的描述更改 URL 并使其仍然指向子域站点。
【问题讨论】:
标签: asp.net-mvc iis web-config subdomain haproxy