I need to redirect our old urls like the following using the IIS 7.5 url rewrite tool:
http://www.mywebsite.com/first+level/second+level/mypage.htm (urls can potentially be one or more levels deep)
Here are the transformations that would need to take place:
- Change .htm to .aspx
- Change "+" to "-" (if they exist)
- Add "/Pages" just before the name of the page
So the final result would follow this format:
Can anyone please help me with the regex to use?