I'm trying to redirect to from a web page in sharepoint site to another page. I want once the users go to this page /pages/voice.aspx it should redirect them to google home page. This is my code: I'm using IIS Rewrite Module
<rewrite> <rules> <rule name="test" patternSyntax="ECMAScript" stopProcessing="true"> <match url=".*" negate="false" /> <action type="Redirect" url="http://www.google.com" appendQueryString="false" /> <conditions> <add input="{HTTP_HOST}" pattern="/Pages/Voice.aspx" /> </conditions> </rule> </rules> </rewrite> then when I access the page, it wont redirect to google home page and no error message was shown on screen.
If there's an alternative way to do the same, please share. I have followed the same steps in this answer but still no luck Immediate Redirect page in sharepoint
I also have tried
<meta http-equiv="REFRESH" content="0;url=http://www.yoururl.com"> but it doesnt redirect, the page remains the same.
I have used 'Redirect' page template in sharepoint but I think its slow for the end user as it needs 5 seconds. I want something instant.