在共享主机ASP.NET MVC扩展名的网址? (GoDaddy的等) [英] ASP.NET MVC Extension-Less URLS on Shared Hosting? (GoDaddy, etc.)

查看:218
本文介绍了在共享主机ASP.NET MVC扩展名的网址? (GoDaddy的等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

时有可能有扩展名的网址(ASP.NET MVC默认)与共享主机?我已经看到了一些事情,才能GoDaddy的通过在Global.asax中路由.aspx扩展工作,但是我不希望我的网址包含的.aspx。

Is it possible to have extension-less URLs (ASP.NET MVC default) with shared hosting? I have seen some things to get GoDaddy working by including the .aspx extension in the Global.asax routing, however I don't want my URLs to include .aspx.

推荐答案

是的,我有一个是在GoDaddy的当前承载一对夫妇的网站共享w的ASP.NET /扩展名的URL。您需要让IIS7集成管道模式因为你不能访问通配符映射或添加ISAPI筛选器上共享框。一旦这样开启,你可以把到达(扩展名),网址为.aspx或任何其他通过HTTP模块或通过URLRewriter.NET或任何其他。

Yes, I have a couple sites that are currently hosted on GoDaddy shared w/ extensionless URLs in ASP.NET. You need to enable IIS7 integrated pipeline mode as you can't access wildcard mappings or add ISAPI filters on a shared box. Once that's turned on, you can route incoming (extensionless) URLs to .aspx or whatever else through an HTTP Module or via URLRewriter.NET or whatever else.

祝你好运。

这篇关于在共享主机ASP.NET MVC扩展名的网址? (GoDaddy的等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆