I have setup a rewrite map through IIS 7.5 so that I can list the old url values and rewrite them to the new URLs. The page is re-directing but the url is staying the same in the browser.
http://www.mysite.com/DestinationListings/2/
it re-directs to
http://www.mysite.com/balearic-island-villas/
However the url in the browser stays as the first link which means I will have duplicate content.
My rules are as follows:
<rule name="old urls">
<match url=".*" />
<conditions>
<add input="{old urls:{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="{C:1}" appendQueryString="false" />
</rule>
Then in my rewrite file I have :
<rewriteMap name="old urls">
<add key="DestinationListings/1/" value="canary-island-villas/" />
<add key="DestinationListings/2/" value="balearic-island-villas/" />
<add key="DestinationListings/11/" value="portugal-villas/" />
<add key="DestinationListings/4/" value="spain-villas/" />
<add key="arealistings/18/" value="algarve/" />
<add key="arealistings/6/" value="costa-del-sol/" />
<add key="arealistings/1/" value="fuerteventura/" />
<add key="arealistings/4/" value="mallorca/" />
<add key="arealistings/2/" value="tenerife/" />
</rewrite>