【发布时间】:2011-10-25 22:23:43
【问题描述】:
在 asp.net 4 中,我想在某些文件上强制使用 https,然后在网站的其余部分恢复为 http。在我的托管公司中,我可以使用 .htaccess 和 mod_rewrite,但我也看到了各种其他方法,这些方法建议从创建类以将页面从 UrlRewriter httpModule 继承。
有什么特别的优点/缺点,或者我还没有找到.net4 中的新内置方法吗?
【问题讨论】:
标签: asp.net https web-config