Skip to content

Instantly share code, notes, and snippets.

@matheusml
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matheusml/c7ad88b67a60cf2df3f8 to your computer and use it in GitHub Desktop.
Save matheusml/c7ad88b67a60cf2df3f8 to your computer and use it in GitHub Desktop.
<system.webServer>
<rewrite>
<rules>
<rule name="CrawlerBotRedirect">
<match url="(.*)html"/>
<action type="Redirect" url="http://google.com" redirectType="Found" />
</rule>
</rules>
</rewrite>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<remove name="BlockViewHandler"/>
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" />
</handlers>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment