Because IIS6 can only rewrite the request after the request is assigned to the Asp.Net engine, IIS7 can execute an HttpModule anywhere in the IIS request pipeline,
and IIS7's access permissions for files or folders have to be reset. The
following is an error information:
If it is the operating environment of IIS7.0, add this configuration
<system.webServer>
<modules>
<!-- Your custom IIS rewrite module operation-->
<add type="S.Sams.Framework.UrlRewriter.RewriterModule "name="RewriterModule" />
</modules>
</system.webServer> The
problem can be solved!
Quoting from ScottGu's Blog
and IIS7's access permissions for files or folders have to be reset. The
following is an error information:
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /signin.aspx
If it is the operating environment of IIS7.0, add this configuration
<system.webServer>
<modules>
<!-- Your custom IIS rewrite module operation-->
<add type="S.Sams.Framework.UrlRewriter.RewriterModule "name="RewriterModule" />
</modules>
</system.webServer> The
problem can be solved!
Quoting from ScottGu's Blog
<?xml version="1.0" encoding="UTF-8"?> <configuration> <configSections> <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" /> </configSections> <system.web> <httpModules> <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" /> </httpModules> </system.web> <system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule" /> </modules> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> <rewriter> <rewrite url="~/products/(.+)" to="~/products.aspx?category=$1" /> </rewriter> </configuration> |