简体   繁体   English

如何在不使用丑陋的URL的情况下成功地在共享主机上托管asp.net mvc应用程序?

[英]How do I succesfully host a asp.net mvc app on shared hosting without resorting to ugly URLs?

Let's assume we're talking about the recently released Beta version. 假设我们正在谈论最近发布的Beta版本。 Specifically I'm interested in a step-by-step tutorial or similar, and I'd be thrilled with information addressing how to do so on CrystalTech. 特别是,我对分步教程或类似教程感兴趣,并且我对解决如何在CrystalTech上做到这一点的信息感到兴奋。

Ultimately you want a hosting environment that uses Windows Server 2008 / IIS7, which allows you configure things like mappings through the web.config rather than through IIS itself. 最终,您需要一个使用Windows Server 2008 / IIS7的托管环境,该环境允许您通过web.config而不是通过IIS本身来配置诸如映射的操作。

Failing that, your only choice is to either ask CrystalTech to enable ASP.NET wildcard mapping to your website or just stick with using .mvc extensions in your URLs. 如果不这样做,您唯一的选择就是要求CrystalTech启用到您的网站的ASP.NET通配符映射,或者只是坚持在URL中使用.mvc扩展名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM