mirror of
https://github.com/mm201/GamestatsBase.git
synced 2026-09-08 18:45:11 -05:00
Updated web.config so URL rewrite will actually work.
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user