Hi,
The previous developer created duplicate pages for four landing pages on my site. For example, one set of duplicate pages is mysite.com/blue_shirt and mysite.com/Blue Shirt
How do I redirect mysite.com/Blue Shirt to mysite.com/blue_shirt? I have tried this code in the webconfig file:
<rule name="Redirect" stopProcessing="true">
<match url="Blue Shirt(.+)$" />
<action type="Redirect" url="blue_shirt{R:1}" redirectType="Permanent"/>
This code works but as soon as I try to add another redirect (like for red shirt)
<rule name="Redirect" stopProcessing="true">
<match url="Blue Shirt(.+)$" />
<action type="Redirect" url="blue_shirt{R:1}" redirectType="Permanent"/>
</rule>
<rule name="Redirect" stopProcessing="true">
<match url="Red Shirt(.+)$" />
<action type="Redirect" url="red_shirt{R:1}" redirectType="Permanent"/>
it doesn't work. Both redirects fail at this point including the blue shirt one which previously worked.
I'm not sure if I should be doing this somewhere different than webconfig (like on the page being redirected), but I am at a loss.
Any help would be greatly appreciated!