mirror of
https://github.com/mm201/GamestatsBase.git
synced 2026-04-25 07:29:31 -05:00
Updated web.config so URL rewrite will actually work.
This commit is contained in:
parent
6de0ca4055
commit
47e075922e
|
|
@ -41,8 +41,8 @@ namespace Sample
|
|||
query = url.Substring(q + 1);
|
||||
}
|
||||
|
||||
// Since our handler is not ASP classic, we must rewrite .asp in
|
||||
// the URL so control will be transferred to it.
|
||||
// Since our handler is ashx, not ASP classic, we need to rewrite
|
||||
// the .asp file extension so it will execute.
|
||||
if (path.Length < 4) return null;
|
||||
if (path.Substring(path.Length - 4).ToLowerInvariant() != ".asp") return null;
|
||||
return path.Substring(0, path.Length - 4) + ".ashx";
|
||||
|
|
|
|||
|
|
@ -8,4 +8,8 @@
|
|||
<compilation debug="true" targetFramework="4.0"/>
|
||||
<httpRuntime/>
|
||||
</system.web>
|
||||
<system.webServer>
|
||||
<modules runAllManagedModulesForAllRequests="true"/>
|
||||
<httpErrors existingResponse="PassThrough"></httpErrors>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
Loading…
Reference in New Issue
Block a user