I want to redirect one URL to the another. Suppose, I have 2 URLs
- www.abc.com/home/gateway [Item for /gateway is not created in sitecore]
- www.xyz.com/newgateway.php [This is not a Sitecore Webpage]
So, here I want to redirect URL 1 to URL 2. In URL 1, /gateway item is not created but here I want if anybody hits that exact URL 1 it automatically redirected to URL 2.
I tried the IIS URL Rewrite module, it is not working correctly showing 404 Sitecore Error.
<rewrite> <rules> <rule name="My Rewrite" enabled="true" stopProcessing="true"> <match url="/home/gateway" /> <action type="Rewrite" url="www.xyz.com/newgateway.php" /> </rule> </rules> </rewrite>