Remove weird custom 404, update rewrite rules to only apply to the forum so that images etc don't get rewritten where they shouldn't be

This commit is contained in:
Sebastiaan Janssen
2015-06-24 17:57:29 +02:00
parent 150b70adf8
commit 785a2aebca
+8 -13
View File
@@ -240,11 +240,6 @@
</scripting>
</system.web.extensions>
<system.webServer>
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/page-not-found/" responseMode="ExecuteURL" />
</httpErrors>
<modules runAllManagedModulesForAllRequests="true">
<remove name="WebDAVModule" />
@@ -332,20 +327,20 @@
<action type="Redirect" url="documentation/Reference/Templating/Mvc/{R:1}" redirectType="Permanent" />
</rule>
<rule name="RemoveParenthesesFromUrls">
<match url="(.*)\((.*)\)(.*)" />
<action type="Redirect" url="{R:1}{R:2}{R:3}" redirectType="Permanent" appendQueryString="true" />
<match url="forum/(.*)\((.*)\)(.*)" />
<action type="Redirect" url="forum/{R:1}{R:2}{R:3}" redirectType="Permanent" appendQueryString="true" />
</rule>
<rule name="RemoveSquareBracketsFromUrls">
<match url="(.*)\[(.*)\](.*)" />
<action type="Redirect" url="{R:1}{R:2}{R:3}" redirectType="Permanent" appendQueryString="true" />
<match url="forum/(.*)\[(.*)\](.*)" />
<action type="Redirect" url="forum/{R:1}{R:2}{R:3}" redirectType="Permanent" appendQueryString="true" />
</rule>
<rule name="RemoveExclamationsFromUrls" patternSyntax="Wildcard">
<match url="*!*" />
<action type="Redirect" url="{R:1}{R:2}" redirectType="Permanent" appendQueryString="true" />
<match url="forum/*!*" />
<action type="Redirect" url="forum/{R:1}{R:2}" redirectType="Permanent" appendQueryString="true" />
</rule>
<rule name="RemoveCommasFromUrls" patternSyntax="Wildcard">
<match url="*,*" />
<action type="Redirect" url="{R:1}{R:2}" redirectType="Permanent" appendQueryString="true" />
<match url="forum/*,*" />
<action type="Redirect" url="forum/{R:1}{R:2}" redirectType="Permanent" appendQueryString="true" />
</rule>
<rule name="RedirectRepoSearch" patternSyntax="Wildcard">
<match url="umbraco/api/Search/FindProjects/*" />