I'm trying to set up an IIS URL Rewrite function to simply send any URL request to google (as a test):
<rule name="Intercept" enabled="true" patternSyntax="ECMAScript" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="google-homepage-url-here" appendQueryString="false" logRewrittenUrl="true" />
<conditions>
<add input="{HTTP_HOST}" pattern="example.com$" />
</conditions>
</rule>
I'm using Rewrite rather than Redirect, because I need to hide the URL from the user. The above config works for Redirect but not for Rewrite, why is this?
When I hit http://example.com/blablabla I get a 404.4
My goal is for the user to be directed to the google home page.
I have ARR installed, any ideas?