我的网站 ASP.NET MVC 做的 发布后 Default.aspx 跳转至
<%
Response.Redirect("/index.html"); 整站首页
%>
我IIS内已经配置了 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll 后缀.html
但是网站 就是找不到
了解的 各位大哥 帮我看下
自己顶一下
Response.Redirect("/index.html");
==
Response.Redirect("index.html");
MVC不是这样来跳转了,楼主参考下这段代码。
public class MvcApplication : System.Web.HttpApplication
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters