简体   繁体   English

为什么网址重写在服务器中不起作用

[英]Why doesn’t url rewrite work in server

In asp.net 3.5, I'm rewriting the url 在asp.net 3.5中,我正在重写URL

    http://www.dotoobeta/blogs/1108

to the following 到以下

    http://www.dotoobeta/blogs/blogs.aspx

I am using the UrlRewritingNet.UrlRewriter.dll and it works fine locally, but it is not work on my other server. 我正在使用UrlRewritingNet.UrlRewriter.dll ,它在本地可以正常运行,但在我的其他服务器上不起作用。 I already modified the configuration in IIS also. 我已经在IIS中修改了配置。

What is the solution? 解决办法是什么?

Perhaps your server is not configured to route requests like http://www.dotoobeta/blogs/1108 through ASP.NET pipeline. 可能您的服务器未配置为通过ASP.NET管道路由诸如http://www.dotoobeta/blogs/1108之类的请求。 If you have IIS 6 or higher on the server, you can configure wildcard handler and handle everything via ASP.NET. 如果服务器上具有IIS 6或更高版本,则可以配置通配符处理程序并通过ASP.NET处理所有内容。 Don't forget to uncheck "verify that file exists" checkbox, or it won't work for nonexisting paths. 不要忘记取消选中“验证该文件是否存在”复选框,否则它将不适用于不存在的路径。

I have similar problem, and it's caused by architecture. 我有类似的问题,这是由体系结构引起的。 I must add mapping for 64 bit too like this : 我也必须为64位添加映射,如下所示:

  <add name="aspnet_isapi"    path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
  <add name="aspnet_isapi-64" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness64" />

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

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