I am trying to configure the IIS Rewrite service URL to just 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 use Rewrite rather than Redirect because I need to hide the URL from the user. The above configuration works for Redirect, but not for Rewrite, why is this?
When I clicked http://example.com/blablabla , I get 404.4
My goal is to redirect the user to the google homepage.
I have ARR installed, any ideas?
source share