0
我已经在服务器2012 R2操作系统上安装了新的visual studio 2013(这是我的测试操作系统,用于编程和SQL)Intelligencia.UrlRewriter在IIS8或IIS Express 8中不起作用?
但最近当我编译使用IIS Express的项目时,使用Intelligencia.UrlRewriter最新版本的网址。 错误页面包含:
Requested URL http://localhost:2706/technology/Astronomy/2014/9/28/1853.html
Physical Path E:\project\technology\Astronomy\2014\9\28\1853.html
Logon Method Anonymous
Logon User Anonymous
Request Tracing Directory C:\Users\Administrator\Documents\IISExpress\TraceLogFiles\Project
多规格我的项目有:
.NET框架:4 管理pipline微尘:经典(!当我将其更改为集成的,什么都没有发生)
我的web.config文件如下:
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>
。 。 。
<httpModules>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
</httpModules>
。 。 。
<system.webServer>
<modules>
<remove name="UrlRewriter"/>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler"/>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="managedHandler"/>
</modules>
。 。 。
<!--Sample-->
<rewriter>
<rewrite url="~/up/(.+)/(.+)/(.+)/default.html" to="~/client/default.aspx?u=$1&n=$2&pi=0&ps=5"/>
在我的情况下url重写是woking在ma在文件夹,但在下一个文件夹它不工作的网站>管理员 – Meer 2016-04-28 10:14:55