URLRewriter for IIS 7 returns 404 Server Error

I implemented " approach 3: using an HttpModule to do URL redirection with extension-less using IIS7 " from here: - http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url -rewriting-with-asp-net.aspx

This is based on the URLRewriter module : - http://urlrewriter.net/

It seems to be working on my local environment, but on the production server (running IIS 7) " 404 is displayed - a page with a file or directory .

I searched on Google and could not find a solution.

In the end, we returned to IIS 6 and followed the instructions that worked: - http://urlrewriter.net/index.php/support/installation/windows-server-2003

But someday we may have to upgrade to IIS 7 in a shared hosting environment, and the same problem will reappear!

+3
source share
4 answers

The host dude launched it to work in IIS 7. HTTP handlers require mapping to other application pools in order for it to work in IIS 7. I hope this helps.

Make sure you have the following in Web.Config :

<system.webServer>
  <validation validateIntegratedModeConfiguration="false"/>
  <handlers>
    <add name="wildcard" path="*" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" requireAccess="None" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
  </handlers>
</system.webServer>
+5
source

, , Integrated Pipeline, , Integrated, . , ?

0

, p1 ( , p1.aspx) p1.

< runAllManagedModulesForAllRequests = "true" / > < system.webServer > web.config , , .

0

IIS 7

HttpModules web.config system.web system.webServer

<system.webServer>
    <modules>
        <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
    </modules>
<system.webServer>

: Pipiline =

0

Source: https://habr.com/ru/post/1773843/


All Articles