小弟刚刚完成一个小的MVC2.0网站,想把发布到空间上去。我在我自己测试服务器上用的是IIS6,修改了ISAPI,然后可以正常访问。
但是空间上都不愿意给我修改。请求各位能给我些建议。
我的路由规则如下:
//新闻详细页 /Mid/webspeed/2011-02-22/199.html
routes.MapRoute("Detail", "{mid}/{sort}/{dt}/{aid}.html",
new { controller = "News", action = "Detail" },
new { mid = @"^\d+", aid = @"^\d+" },
new string[] { "WebApp.Controllers" }
);
//新闻列表页 /Mid/webspeed.html
routes.MapRoute("NewIndex", "{mid}/{sort}.html",
new { controller = "News", action = "NewIndex" },
new { mid = @"^\d+" },
new string[] { "WebApp.Controllers" }
);
//留言反馈 /ly/index.html
routes.MapRoute("LyIndex", "ly/index.html",
new { controller = "Ly", action = "LyIndex" },
new string[] { "WebApp.Controllers" }
);
//成功案例 /example/webexample.html
routes.MapRoute("Example", "example/{sort}.html",
new { controller = "Index", action = "Example" },
new string[] { "WebApp.Controllers" }
);
谢谢能给些建议?或者推荐比较能够解决问题的空间商或者解决方法?
谢谢了!在线等
找IIS7的空间看看可以不?