Redirect file to URL IIS

With this rewrite rule in your web.config, it’s possible to redirect a user from a specific file to an internal or external URL.
When they enter, they will be redirected to

Note that this requires you have URL Rewrite installed on your IIS.

Place the following rule inside:

     Your rule goes here...

Rewrite rule:

<rule name="Redirect file to external url" stopProcessing="true">
	<match url="^~/folder/filename\.html$" />
		<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
	<action type="Redirect" url="" appendQueryString="false" redirectType="Permanent" />